array SimpleFunc_nextFree356 integer SimpleFunc_firstFree109 integer SimpleFunc_maxIndex126 array SimpleFunc_typeId626 integer SimpleFunc_firstFree109 = 0 integer SimpleFunc_maxIndex126 = 0 function initGlobals162() { SimpleFunc_firstFree_109 = 0; SimpleFunc_maxIndex_126 = 0; } function main155() { initGlobals162(); init_test153(); } function config591() { } function init_test153() { local integer f214 local integer clVar151 clVar_151 = alloc_SimpleFunc_test115(); f_214 = clVar_151; dispatch_SimpleFunc_test_SimpleFunc_apply525(f_214); } IS_NATIVE function testSuccess171() { } function apply_test176(integer this142) { testSuccess171(); } function alloc_SimpleFunc_test115() returns integer { local integer this345 if (SimpleFunc_firstFree_109 == 0) { if (SimpleFunc_maxIndex_126 < 32768) { SimpleFunc_maxIndex_126 = (SimpleFunc_maxIndex_126 + 1); this_345 = SimpleFunc_maxIndex_126; SimpleFunc_typeId_626[this_345] = 2; } else { error164("Out of memory: Could not create SimpleFunc_test."); this_345 = 0; }; } else { SimpleFunc_firstFree_109 = (SimpleFunc_firstFree_109 - 1); this_345 = SimpleFunc_nextFree_356[SimpleFunc_firstFree_109]; SimpleFunc_typeId_626[this_345] = 2; }; return this_345; } function error164(string msg155) { $debugPrint886((msg_155 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply525(integer this406) { if (SimpleFunc_typeId_626[this_406] == 0) { if (this_406 == 0) { error164("Nullpointer exception when calling SimpleFunc.apply"); } else { error164("Called SimpleFunc.apply on invalid object."); }; } else { }; apply_test176(this_406); }