array<integer> SimpleFunc_nextFree153 integer SimpleFunc_firstFree169 integer SimpleFunc_maxIndex895 array<integer> SimpleFunc_typeId322 integer SimpleFunc_firstFree169 = 0 integer SimpleFunc_maxIndex895 = 0 function initGlobals139() { } function main762() { initGlobals139(); init_test148(); } function config984() { } function init_test148() { local integer this786 if (SimpleFunc_firstFree_169 == 0) { if (SimpleFunc_maxIndex_895 < 32768) { SimpleFunc_maxIndex_895 = (SimpleFunc_maxIndex_895 + 1); this_786 = SimpleFunc_maxIndex_895; SimpleFunc_typeId_322[this_786] = 2; } else { error207("Out of memory: Could not create SimpleFunc_test."); this_786 = 0; }; } else { SimpleFunc_firstFree_169 = (SimpleFunc_firstFree_169 - 1); this_786 = SimpleFunc_nextFree_153[SimpleFunc_firstFree_169]; SimpleFunc_typeId_322[this_786] = 2; }; if (SimpleFunc_typeId_322[this_786] == 0) { if (this_786 == 0) { error207("Nullpointer exception when calling SimpleFunc.call"); } else { error207("Called SimpleFunc.call on invalid object."); }; } else { }; testSuccess178(); } IS_NATIVE function testSuccess178() { } function error207(string msg208) { $debugPrint987((msg_208 + (" " + #getStackTrace()))); }