¡@

Home 

c++ Programming Glossary: lua_pushnil

Iterating through a Lua table from C++?

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

1 2 3 C file 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.. from the reference 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.. L 1 lua_pop L 1 And finally this lua_getglobal L level lua_pushnil L lua_next L 1 if lua_isnumber L 1 int i int lua_tonumber L..