array SimpleFunc_nextFree450 integer SimpleFunc_firstFree182 integer SimpleFunc_maxIndex491 array SimpleFunc_typeId156 integer SimpleFunc_firstFree182 = 0 integer SimpleFunc_maxIndex491 = 0 function initGlobals142() { } function main116() { initGlobals142(); init_test102(); } function config750() { } function init_test102() { local integer this200 if (SimpleFunc_firstFree_182 == 0) { if (SimpleFunc_maxIndex_491 < 32768) { SimpleFunc_maxIndex_491 = (SimpleFunc_maxIndex_491 + 1); this_200 = SimpleFunc_maxIndex_491; SimpleFunc_typeId_156[this_200] = 2; } else { error306("Out of memory: Could not create SimpleFunc_test."); this_200 = 0; }; } else { SimpleFunc_firstFree_182 = (SimpleFunc_firstFree_182 - 1); this_200 = SimpleFunc_nextFree_450[SimpleFunc_firstFree_182]; SimpleFunc_typeId_156[this_200] = 2; }; if (SimpleFunc_typeId_156[this_200] == 0) { if (this_200 == 0) { error306("Nullpointer exception when calling SimpleFunc.apply"); } else { error306("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess857(); } IS_NATIVE function testSuccess857() { } function error306(string msg202) { $debugPrint126((msg_202 + (" " + #getStackTrace()))); }