コード例 #1
0
 public void CheckTop()
 {
     if (LuaNativeMethods.lua_gettop(StatePointer) != errorReported)
     {
         errorReported = LuaNativeMethods.lua_gettop(StatePointer);
         Logger.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaNativeMethods.luaL_typename(StatePointer, errorReported)));
     }
 }