array SimpleFunc_nextFree559 integer SimpleFunc_firstFree101 integer SimpleFunc_maxIndex733 array SimpleFunc_typeId135 integer SimpleFunc_firstFree101 = 0 integer SimpleFunc_maxIndex733 = 0 function initGlobals308() { } function main136() { initGlobals308(); init_test284(); } function config162() { } function init_test284() { local integer this100 if (SimpleFunc_firstFree_101 == 0) { if (SimpleFunc_maxIndex_733 < 32768) { SimpleFunc_maxIndex_733 = (SimpleFunc_maxIndex_733 + 1); this_100 = SimpleFunc_maxIndex_733; SimpleFunc_typeId_135[this_100] = 2; } else { error149("Out of memory: Could not create SimpleFunc_test."); this_100 = 0; }; } else { SimpleFunc_firstFree_101 = (SimpleFunc_firstFree_101 - 1); this_100 = SimpleFunc_nextFree_559[SimpleFunc_firstFree_101]; SimpleFunc_typeId_135[this_100] = 2; }; if (SimpleFunc_typeId_135[this_100] == 0) { if (this_100 == 0) { error149("Nullpointer exception when calling SimpleFunc.apply"); } else { error149("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess999(); } IS_NATIVE function testSuccess999() { } function error149(string msg179) { $debugPrint448((msg_179 + (" " + #getStackTrace()))); }