MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_next

Function lua_next

WebGLPlugins/lapi.c:1122–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120
1121
1122LUA_API int lua_next (lua_State *L, int idx) {
1123 StkId t;
1124 int more;
1125 lua_lock(L);
1126 t = index2addr(L, idx);
1127 api_check(L, ttistable(t), "table expected");
1128 more = luaH_next(L, hvalue(t), L->top - 1);
1129 if (more) {
1130 api_incr_top(L);
1131 }
1132 else /* no more elements */
1133 L->top -= 1; /* remove key */
1134 lua_unlock(L);
1135 return more;
1136}
1137
1138
1139LUA_API void lua_concat (lua_State *L, int n) {

Callers 6

luaB_nextFunction · 0.85
findfieldFunction · 0.85
maxnFunction · 0.85
mark_tableFunction · 0.85
make_reportFunction · 0.85
mark_root_tableFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected