Example #1
0
        public LuaInteger64 CheckInteger64()
        {
            string       error = null;
            LuaInteger64 i64   = luaState.CheckInteger64(stackPos++, out error);

            ThrowException(error);
            return(i64);
        }
Example #2
0
	static int ToUint64Helper(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 1);
			LuaInterface.LuaInteger64 o = Util.ToUint64Helper(arg0);
			LuaDLL.tolua_pushint64(L, o);
			return 1;
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Example #3
0
	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);
		}
	}
 public void PushInt64(LuaInteger64 n64)
 {
     luaState.PushInt64(n64);
     ++argCount;
 }
Example #5
0
 public void PushInt64(LuaInteger64 n64)
 {
     this.luaState.PushInt64(n64);
     this.argCount++;
 }