array Hey_nextFree208 integer Hey_firstFree487 integer Hey_maxIndex708 integer Hey_firstFree487 = 0 integer Hey_maxIndex708 = 0 function initGlobals129() { } function main199() { initGlobals129(); init_test137(); } function config151() { } function init_test137() { construct_Hey496(alloc_Hey_test765()); } IS_NATIVE function testSuccess127() { } function Hey_init825(integer this900) { } function construct_Hey496(integer this306) { Hey_init825(this_306); testSuccess127(); } function alloc_Hey_test765() returns integer { local integer this177 if (Hey_firstFree_487 == 0) { if (Hey_maxIndex_708 < 32768) { Hey_maxIndex_708 = (Hey_maxIndex_708 + 1); this_177 = Hey_maxIndex_708; } else { error657("Out of memory: Could not create Hey_test."); this_177 = 0; }; } else { Hey_firstFree_487 = (Hey_firstFree_487 - 1); this_177 = Hey_nextFree_208[Hey_firstFree_487]; }; return this_177; } function error657(string msg132) { $debugPrint521((msg_132 + (" " + #getStackTrace()))); }