array SimpleFunc_nextFree815 integer SimpleFunc_firstFree589 integer SimpleFunc_maxIndex176 array SimpleFunc_typeId948 integer SimpleFunc_firstFree589 = 0 integer SimpleFunc_maxIndex176 = 0 function initGlobals628() { } function main915() { initGlobals628(); init_test147(); } function config133() { } function init_test147() { local integer f110 local integer clVar131 local integer this206 local integer this162 if (SimpleFunc_firstFree_589 == 0) { if (SimpleFunc_maxIndex_176 < 32768) { SimpleFunc_maxIndex_176 = (SimpleFunc_maxIndex_176 + 1); this_206 = SimpleFunc_maxIndex_176; SimpleFunc_typeId_948[this_206] = 2; } else { error124("Out of memory: Could not create SimpleFunc_test."); this_206 = 0; }; } else { SimpleFunc_firstFree_589 = (SimpleFunc_firstFree_589 - 1); this_206 = SimpleFunc_nextFree_815[SimpleFunc_firstFree_589]; SimpleFunc_typeId_948[this_206] = 2; }; clVar_131 = this_206; f_110 = clVar_131; this_162 = f_110; if (SimpleFunc_typeId_948[this_162] == 0) { if (this_162 == 0) { error124("Nullpointer exception when calling SimpleFunc.apply"); } else { error124("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess212(); } IS_NATIVE function testSuccess212() { } function error124(string msg134) { $debugPrint165((msg_134 + (" " + #getStackTrace()))); }