MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_next

Function lua_next

extlibs/lua/src/lapi.c:1205–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203
1204
1205LUA_API int lua_next (lua_State *L, int idx) {
1206 Table *t;
1207 int more;
1208 lua_lock(L);
1209 api_checknelems(L, 1);
1210 t = gettable(L, idx);
1211 more = luaH_next(L, t, L->top - 1);
1212 if (more) {
1213 api_incr_top(L);
1214 }
1215 else /* no more elements */
1216 L->top -= 1; /* remove key */
1217 lua_unlock(L);
1218 return more;
1219}
1220
1221
1222LUA_API void lua_toclose (lua_State *L, int idx) {

Callers 9

luaB_nextFunction · 0.85
findfieldFunction · 0.85
compat53_findfieldFunction · 0.85
clearFunction · 0.85
getMethod · 0.85
getMethod · 0.85
clear_entriesFunction · 0.85
for_eachMethod · 0.85

Calls 2

gettableFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected