LuaInterface.LuaDLL.lua_settable C# (CSharp) Method

lua_settable() private method

private lua_settable ( IntPtr luaState, int index ) : void
luaState System.IntPtr
index int
return void
        public static extern void lua_settable(IntPtr luaState, int index);
        [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]

Usage Example

示例#1
0
        internal void setObject(int reference, object field, object val)
        {
            int newTop = LuaDLL.lua_gettop(this.L);

            LuaDLL.lua_getref(this.L, reference);
            this.translator.push(this.L, field);
            this.translator.push(this.L, val);
            LuaDLL.lua_settable(this.L, -3);
            LuaDLL.lua_settop(this.L, newTop);
        }
All Usage Examples Of LuaInterface.LuaDLL::lua_settable
LuaDLL