array SimpleFunc_nextFree407 integer SimpleFunc_firstFree509 integer SimpleFunc_maxIndex190 array SimpleFunc_typeId460 integer SimpleFunc_firstFree509 = 0 integer SimpleFunc_maxIndex190 = 0 function initGlobals210() { } function main118() { initGlobals210(); init_test175(); } function config182() { } function init_test175() { local integer f774 local integer clVar204 local integer this192 local integer this167 if (SimpleFunc_firstFree_509 == 0) { if (SimpleFunc_maxIndex_190 < 32768) { SimpleFunc_maxIndex_190 = (SimpleFunc_maxIndex_190 + 1); this_192 = SimpleFunc_maxIndex_190; SimpleFunc_typeId_460[this_192] = 2; } else { error112("Out of memory: Could not create SimpleFunc_test."); this_192 = 0; }; } else { SimpleFunc_firstFree_509 = (SimpleFunc_firstFree_509 - 1); this_192 = SimpleFunc_nextFree_407[SimpleFunc_firstFree_509]; SimpleFunc_typeId_460[this_192] = 2; }; clVar_204 = this_192; f_774 = clVar_204; this_167 = f_774; if (SimpleFunc_typeId_460[this_167] == 0) { if (this_167 == 0) { error112("Nullpointer exception when calling SimpleFunc.apply"); } else { error112("Called SimpleFunc.apply on invalid object."); }; } else { }; testSuccess150(); } IS_NATIVE function testSuccess150() { } function error112(string msg171) { $debugPrint194((msg_171 + (" " + #getStackTrace()))); }