摘要:
int lua_next (lua_State *L, int index);Pops a key from the stack, and pushes a key-value pair from the table at the given index (the "next" pair after the given key). If there are no more elements in the table, thenlua_nextreturns 0 (and pushes nothing).A typical traversal looks like this: 阅读全文