Push() public abstract method

public abstract Push ( IntPtr L ) : void
L System.IntPtr
return void
Beispiel #1
0
 /// <summary>
 /// expects table on top
 /// </summary>
 public static void SetField(IntPtr L, LuaValue key, LuaValue value)
 {
     Check(L, -1);
     key.Push(L);
     value.Push(L);
     Lua.lua_settable(L, -3);
 }
Beispiel #2
0
        /// <summary>
        /// expects table on top
        /// returns field from table on top of stack
        /// </summary>
        public static LuaValue GetField(IntPtr L, LuaValue key)
        {
            Check(L, -1);
            key.Push(L);
            Lua.lua_gettable(L, -2);
            var ret = Read(L, -2);

            Pop(L, 1);
            return(ret);
        }
Beispiel #3
0
 public static void SetGlobal(IntPtr L, string name, LuaValue value)
 {
     value.Push(L);
     Lua.lua_setglobal(L, name);
 }
Beispiel #4
0
 /// <summary>
 /// expects table on top
 /// </summary>
 public static void SetField(IntPtr L, LuaValue key, LuaValue value)
 {
     Check(L, -1);
     key.Push(L);
     value.Push(L);
     Lua.lua_settable(L, -3);
 }
Beispiel #5
0
 /// <summary>
 /// expects table on top
 /// returns field from table on top of stack
 /// </summary>
 public static LuaValue GetField(IntPtr L, LuaValue key)
 {
     Check(L, -1);
     key.Push(L);
     Lua.lua_gettable(L, -2);
     var ret = Read(L, -2);
     Pop(L, 1);
     return ret;
 }
Beispiel #6
0
 public static void SetGlobal(IntPtr L, string name, LuaValue value)
 {
     value.Push(L);
     Lua.lua_setglobal(L, name);
 }