array SimpleFunc_nextFree842 integer SimpleFunc_firstFree640 integer SimpleFunc_maxIndex811 array SimpleFunc_typeId120 integer SimpleFunc_firstFree640 = 0 integer SimpleFunc_maxIndex811 = 0 function initGlobals167() { } function main199() { initGlobals167(); init_test620(); } function config946() { } function init_test620() { if (dispatch_SimpleFunc_test_SimpleFunc_call125(alloc_SimpleFunc_test146()) == 1) { testSuccess135(); } else { }; } IS_NATIVE function testSuccess135() { } function call_test906(integer this113) returns integer { return 1; } function alloc_SimpleFunc_test146() returns integer { local integer this168 if (SimpleFunc_firstFree_640 == 0) { if (SimpleFunc_maxIndex_811 < 32768) { SimpleFunc_maxIndex_811 = (SimpleFunc_maxIndex_811 + 1); this_168 = SimpleFunc_maxIndex_811; SimpleFunc_typeId_120[this_168] = 2; } else { error180("Out of memory: Could not create SimpleFunc_test."); this_168 = 0; }; } else { SimpleFunc_firstFree_640 = (SimpleFunc_firstFree_640 - 1); this_168 = SimpleFunc_nextFree_842[SimpleFunc_firstFree_640]; SimpleFunc_typeId_120[this_168] = 2; }; return this_168; } function error180(string msg209) { $debugPrint260((msg_209 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_call125(integer this286) returns integer { if (SimpleFunc_typeId_120[this_286] == 0) { if (this_286 == 0) { error180("Nullpointer exception when calling SimpleFunc.call"); } else { error180("Called SimpleFunc.call on invalid object."); }; } else { }; return call_test906(this_286); }