static int ULong(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(LuaInterface.LuaInteger64))) { LuaInteger64 arg0 = LuaDLL.tolua_toint64(L, 1); ulong o = Util.ULong(arg0); LuaDLL.lua_pushnumber(L, o); return 1; } else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(cs.MyUint64))) { cs.MyUint64 arg0 = (cs.MyUint64)ToLua.ToObject(L, 1); ulong o = Util.ULong(arg0); LuaDLL.lua_pushnumber(L, o); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: Util.ULong"); } } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } }
static int Uint64(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(LuaInterface.LuaInteger64))) { LuaInteger64 arg0 = LuaDLL.tolua_toint64(L, 1); cs.MyUint64 o = Util.Uint64(arg0); ToLua.PushObject(L, o); return 1; } else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string))) { string arg0 = ToLua.ToString(L, 1); LuaInterface.LuaInteger64 o = Util.Uint64(arg0); LuaDLL.tolua_pushint64(L, o); return 1; } else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(ulong))) { ulong arg0 = (ulong)LuaDLL.lua_tonumber(L, 1); cs.MyUint64 o = Util.Uint64(arg0); ToLua.PushObject(L, o); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: Util.Uint64"); } } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } }