static int LogWarning(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); CsUtil.LogWarning(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateCsUtil(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { CsUtil obj = new CsUtil(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: CsUtil.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }