¡@

Home 

c++ Programming Glossary: lua_next

Iterating through a Lua table from C++?

http://stackoverflow.com/questions/1438842/iterating-through-a-lua-table-from-c

first iteration just fine but then at the second call to lua_next it crashes. Any ideas Lua file level 1 2 3 C file First I did.. First I did this lua_getglobal L level for lua_pushnil L lua_next L 1 lua_pop L 2 if lua_isnumber L 1 int i int lua_tonumber L.. manual lua_getglobal L level int t 1 lua_pushnil L while lua_next L t printf s s lua_typename L lua_type L 2 lua_typename L lua_type..