static int ExecuteReturnLogic(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MyFrameWork.BaseUI obj = (MyFrameWork.BaseUI)ToLua.CheckObject(L, 1, typeof(MyFrameWork.BaseUI)); bool o = obj.ExecuteReturnLogic(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }