How can I create a table in Lua, then add values from the C API?

Here's what I have so far... It creates global table called "mod", but I can't seem to add indexes to the table...

lua_newtable(L);
lua_setglobal(L,"mod");
5
задан Brian Tompsett - 汤莱恩 15 October 2016 в 21:01
поделиться