Lua 5.2 alternative for "while (lua_next(L, LUA_GLOBALSINDEX) != 0) {"
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Lua 5.2 alternative for "while (lua_next(L, LUA_GLOBALSINDEX) != 0) {"
- From: Joop Boonen <joop_boonen@...>
- Date: 2012年11月19日 09:16:20 +0100
Hi,
Does anyone which alternative Lua 5.2 code can be used for:
while (lua_next(L, LUA_GLOBALSINDEX) != 0) {
Is the following an option?
while (lua_next(L, LUA_RIDX_GLOBALS) != 0) {
Regards,
Joop.