static int SendPlatformMsg(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); CrossPlatformInterface obj = (CrossPlatformInterface)ToLua.CheckObject <CrossPlatformInterface>(L, 1); string arg0 = ToLua.CheckString(L, 2); string o = obj.SendPlatformMsg(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateCrossPlatformInterface(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { CrossPlatformInterface obj = new CrossPlatformInterface(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: CrossPlatformInterface.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }