array SimpleFunc_nextFree139 integer SimpleFunc_firstFree168 integer SimpleFunc_maxIndex344 array SimpleFunc_typeId187 integer SimpleFunc_firstFree168 = 0 integer SimpleFunc_maxIndex344 = 0 function initGlobals575() { } function main213() { initGlobals575(); init_test508(); } function config159() { } function init_test508() { local integer f203 local integer clVar149 local integer this447 local integer this990 if (SimpleFunc_firstFree_168 == 0) { if (SimpleFunc_maxIndex_344 < 32768) { SimpleFunc_maxIndex_344 = (SimpleFunc_maxIndex_344 + 1); this_447 = SimpleFunc_maxIndex_344; SimpleFunc_typeId_187[this_447] = 2; } else { error678("Out of memory: Could not create SimpleFunc_test."); this_447 = 0; }; } else { SimpleFunc_firstFree_168 = (SimpleFunc_firstFree_168 - 1); this_447 = SimpleFunc_nextFree_139[SimpleFunc_firstFree_168]; SimpleFunc_typeId_187[this_447] = 2; }; clVar_149 = this_447; f_203 = clVar_149; this_990 = f_203; if (SimpleFunc_typeId_187[this_990] == 0) { if (this_990 == 0) { error678("Nullpointer exception when calling SimpleFunc.apply"); } else { error678("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess195(); } IS_NATIVE function testSuccess195() { } function error678(string msg506) { $debugPrint774((msg_506 + (" " + #getStackTrace()))); }