array SimpleFunc_nextFree211 integer SimpleFunc_firstFree100 integer SimpleFunc_maxIndex366 array SimpleFunc_typeId158 integer SimpleFunc_firstFree100 = 0 integer SimpleFunc_maxIndex366 = 0 function initGlobals397() { } function main211() { initGlobals397(); init_test150(); } function config451() { } function init_test150() { local integer this407 if (SimpleFunc_firstFree_100 == 0) { if (SimpleFunc_maxIndex_366 < 32768) { SimpleFunc_maxIndex_366 = (SimpleFunc_maxIndex_366 + 1); this_407 = SimpleFunc_maxIndex_366; SimpleFunc_typeId_158[this_407] = 2; } else { error904("Out of memory: Could not create SimpleFunc_test."); this_407 = 0; }; } else { SimpleFunc_firstFree_100 = (SimpleFunc_firstFree_100 - 1); this_407 = SimpleFunc_nextFree_211[SimpleFunc_firstFree_100]; SimpleFunc_typeId_158[this_407] = 2; }; if (SimpleFunc_typeId_158[this_407] == 0) { if (this_407 == 0) { error904("Nullpointer exception when calling SimpleFunc.apply"); } else { error904("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess156(); } IS_NATIVE function testSuccess156() { } function error904(string msg167) { $debugPrint819((msg_167 + (" " + #getStackTrace()))); }