array SimpleFunc_nextFree179 integer SimpleFunc_firstFree573 integer SimpleFunc_maxIndex100 array SimpleFunc_typeId355 integer SimpleFunc_firstFree573 = 0 integer SimpleFunc_maxIndex100 = 0 function initGlobals189() { } function main113() { initGlobals189(); init_test162(); } function config104() { } function init_test162() { local integer this181 if (SimpleFunc_firstFree_573 == 0) { if (SimpleFunc_maxIndex_100 < 32768) { SimpleFunc_maxIndex_100 = (SimpleFunc_maxIndex_100 + 1); this_181 = SimpleFunc_maxIndex_100; SimpleFunc_typeId_355[this_181] = 2; } else { error338("Out of memory: Could not create SimpleFunc_test."); this_181 = 0; }; } else { SimpleFunc_firstFree_573 = (SimpleFunc_firstFree_573 - 1); this_181 = SimpleFunc_nextFree_179[SimpleFunc_firstFree_573]; SimpleFunc_typeId_355[this_181] = 2; }; if (SimpleFunc_typeId_355[this_181] == 0) { if (this_181 == 0) { error338("Nullpointer exception when calling SimpleFunc.call"); } else { error338("Called SimpleFunc.call on invalid object."); }; } else { }; testSuccess146(); } IS_NATIVE function testSuccess146() { } function error338(string msg911) { $debugPrint559((msg_911 + (" " + #getStackTrace()))); }