public LuaThread CheckLuaThread() { try { return luaState.CheckLuaThread(stackPos++); } catch (Exception e) { EndPCall(); throw e; } }