array SimpleFunc_nextFree145 integer SimpleFunc_firstFree189 integer SimpleFunc_maxIndex170 array SimpleFunc_typeId138 integer SimpleFunc_firstFree189 = 0 integer SimpleFunc_maxIndex170 = 0 function initGlobals132() { } function main149() { initGlobals132(); init_test169(); } function config133() { } function init_test169() { local integer this132 if (SimpleFunc_firstFree_189 == 0) { if (SimpleFunc_maxIndex_170 < 32768) { SimpleFunc_maxIndex_170 = (SimpleFunc_maxIndex_170 + 1); this_132 = SimpleFunc_maxIndex_170; SimpleFunc_typeId_138[this_132] = 2; } else { error172("Out of memory: Could not create SimpleFunc_test."); this_132 = 0; }; } else { SimpleFunc_firstFree_189 = (SimpleFunc_firstFree_189 - 1); this_132 = SimpleFunc_nextFree_145[SimpleFunc_firstFree_189]; SimpleFunc_typeId_138[this_132] = 2; }; if (SimpleFunc_typeId_138[this_132] == 0) { if (this_132 == 0) { error172("Nullpointer exception when calling SimpleFunc.apply"); } else { error172("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess526(); } IS_NATIVE function testSuccess526() { } function error172(string msg185) { $debugPrint105((msg_185 + (" " + #getStackTrace()))); }