array SimpleFunc_nextFree189 integer SimpleFunc_firstFree952 integer SimpleFunc_maxIndex177 array SimpleFunc_typeId880 integer SimpleFunc_firstFree952 = 0 integer SimpleFunc_maxIndex177 = 0 function initGlobals511() { } function main183() { initGlobals511(); init_test812(); } function config103() { } function init_test812() { local integer f178 local integer clVar183 local integer this522 local integer this119 local integer test_SimpleFunc_call_result100 if (SimpleFunc_firstFree_952 == 0) { if (SimpleFunc_maxIndex_177 < 32768) { SimpleFunc_maxIndex_177 = (SimpleFunc_maxIndex_177 + 1); this_522 = SimpleFunc_maxIndex_177; SimpleFunc_typeId_880[this_522] = 2; } else { error102("Out of memory: Could not create SimpleFunc_test."); this_522 = 0; }; } else { SimpleFunc_firstFree_952 = (SimpleFunc_firstFree_952 - 1); this_522 = SimpleFunc_nextFree_189[SimpleFunc_firstFree_952]; SimpleFunc_typeId_880[this_522] = 2; }; clVar_183 = this_522; f_178 = clVar_183; this_119 = f_178; if (SimpleFunc_typeId_880[this_119] == 0) { if (this_119 == 0) { error102("Nullpointer exception when calling SimpleFunc.call"); } else { error102("Called SimpleFunc.call on invalid object."); }; } else { }; test_SimpleFunc_call_result_100 = 1; if (test_SimpleFunc_call_result_100 == 1) { testSuccess150(); } else { }; } IS_NATIVE function testSuccess150() { } function error102(string msg755) { $debugPrint971((msg_755 + (" " + #getStackTrace()))); }