--- stratagus-040702/src/stratagus/script.c- 2004-06-27 02:38:18 +0400 +++ stratagus-040702/src/stratagus/script.c 2006-06-10 03:20:58 +0400 @@ -322,6 +335,9 @@ int LuaToBoolean(lua_State* l, int narg) */ void CclGarbageCollect(int fast) { +#if LUA_VERSION_NUM >= 501 + (void) fast; +#else DebugPrint("Garbage collect (before): %d/%d\n" _C_ lua_getgccount(Lua) _C_ lua_getgcthreshold(Lua)); @@ -329,6 +344,7 @@ void CclGarbageCollect(int fast) DebugPrint("Garbage collect (after): %d/%d\n" _C_ lua_getgccount(Lua) _C_ lua_getgcthreshold(Lua)); +#endif } /*............................................................................