MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_next

Function lua_next

freebsd/contrib/openzfs/module/lua/lapi.c:1111–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109
1110
1111LUA_API int lua_next (lua_State *L, int idx) {
1112 StkId t;
1113 int more;
1114 lua_lock(L);
1115 t = index2addr(L, idx);
1116 api_check(L, ttistable(t), "table expected");
1117 more = luaH_next(L, hvalue(t), L->top - 1);
1118 if (more) {
1119 api_incr_top(L);
1120 }
1121 else /* no more elements */
1122 L->top -= 1; /* remove key */
1123 lua_unlock(L);
1124 return more;
1125}
1126
1127
1128LUA_API void lua_concat (lua_State *L, int n) {

Callers 5

luaB_nextFunction · 0.70
findfieldFunction · 0.70
maxnFunction · 0.70
zcp_table_to_nvlistFunction · 0.50
zcp_parse_table_argsFunction · 0.50

Calls 2

index2addrFunction · 0.85
luaH_nextFunction · 0.70

Tested by

no test coverage detected