static int CheckHasMsg(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); NetWorkManager obj = (NetWorkManager)ToLua.CheckObject <NetWorkManager>(L, 1); bool o = obj.CheckHasMsg(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }