internal void checkTop() { if (LuaDLL.lua_gettop(L) != errorReported) { errorReported = LuaDLL.lua_gettop(L); Logger.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaDLL.luaL_typename(L, errorReported))); } }
void tick() { if (!inited) { return; } if (LuaDLL.lua_gettop(luaState.L) != errorReported) { errorReported = LuaDLL.lua_gettop(luaState.L); Logger.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaDLL.luaL_typename(luaState.L, errorReported))); } luaState.checkRef(); #if !SLUA_STANDALONE LuaTimer.tick(Time.deltaTime); #endif }
void tick() { if (LuaDLL.lua_gettop(luaState.L) != errorReported) { errorReported = LuaDLL.lua_gettop(luaState.L); Debug.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaDLL.luaL_typename(luaState.L, errorReported))); } luaState.checkRef(); LuaTimer.tick(Time.deltaTime); }