BOLTStack.Lua.lua_newtable C# (CSharp) Method

lua_newtable() public static method

public static lua_newtable ( IntPtr luaState ) : void
luaState System.IntPtr
return void
        public static void lua_newtable(IntPtr luaState)
        {
            lua_createtable(luaState, 0, 0);
        }

Usage Example

Esempio n. 1
0
 public static void PushDictionary(this IntPtr L, Dictionary <string, double> dict)
 {
     Lua.lua_newtable(L);
     foreach (var pair in dict)
     {
         Push(L, pair.Value);
         Lua.lua_setfield(L, -2, pair.Key);
     }
 }
All Usage Examples Of BOLTStack.Lua::lua_newtable