array SimpleFunc_nextFree161 integer SimpleFunc_firstFree143 integer SimpleFunc_maxIndex664 array SimpleFunc_typeId211 integer SimpleFunc_firstFree143 = 0 integer SimpleFunc_maxIndex664 = 0 function initGlobals187() { } function main795() { initGlobals187(); init_test187(); } function config140() { } function init_test187() { local integer clVar114 clVar_114 = alloc_SimpleFunc_test286(); dispatch_SimpleFunc_test_SimpleFunc_apply942(clVar_114); } IS_NATIVE function testSuccess973() { } function apply_test113(integer this802) { testSuccess973(); } function alloc_SimpleFunc_test286() returns integer { local integer this136 if (SimpleFunc_firstFree_143 == 0) { if (SimpleFunc_maxIndex_664 < 32768) { SimpleFunc_maxIndex_664 = (SimpleFunc_maxIndex_664 + 1); this_136 = SimpleFunc_maxIndex_664; SimpleFunc_typeId_211[this_136] = 2; } else { error681("Out of memory: Could not create SimpleFunc_test."); this_136 = 0; }; } else { SimpleFunc_firstFree_143 = (SimpleFunc_firstFree_143 - 1); this_136 = SimpleFunc_nextFree_161[SimpleFunc_firstFree_143]; SimpleFunc_typeId_211[this_136] = 2; }; return this_136; } function error681(string msg379) { $debugPrint781((msg_379 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply942(integer this500) { if (SimpleFunc_typeId_211[this_500] == 0) { if (this_500 == 0) { error681("Nullpointer exception when calling SimpleFunc.apply"); } else { error681("Called SimpleFunc.apply on invalid object."); }; } else { }; apply_test113(this_500); }