array Hey_nextFree137 integer Hey_firstFree162 integer Hey_maxIndex158 integer Hey_firstFree162 = 0 integer Hey_maxIndex158 = 0 function initGlobals306() { } function main248() { initGlobals306(); init_test116(); } function config201() { } function init_test116() { construct_Hey201(alloc_Hey_test153()); } IS_NATIVE function testSuccess708() { } function Hey_init487(integer this177) { } function construct_Hey201(integer this143) { Hey_init487(this_143); testSuccess708(); } function alloc_Hey_test153() returns integer { local integer this144 if (Hey_firstFree_162 == 0) { if (Hey_maxIndex_158 < 32768) { Hey_maxIndex_158 = (Hey_maxIndex_158 + 1); this_144 = Hey_maxIndex_158; } else { error968("Out of memory: Could not create Hey_test."); this_144 = 0; }; } else { Hey_firstFree_162 = (Hey_firstFree_162 - 1); this_144 = Hey_nextFree_137[Hey_firstFree_162]; }; return this_144; } function error968(string msg195) { $debugPrint203((msg_195 + (" " + #getStackTrace()))); }