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