MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_next

Function lua_next

src/Chain/libraries/glua/lapi.cpp:1211–1225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209
1210
1211LUA_API int lua_next(lua_State *L, int idx) {
1212 StkId t;
1213 int more;
1214 lua_lock(L);
1215 t = index2addr(L, idx);
1216 api_check(L, ttistable(t), "table expected");
1217 more = luaH_next(L, hvalue(t), L->top - 1);
1218 if (more) {
1219 api_incr_top(L);
1220 }
1221 else /* no more elements */
1222 L->top -= 1; /* remove key */
1223 lua_unlock(L);
1224 return more;
1225}
1226
1227
1228LUA_API void lua_concat(lua_State *L, int n) {

Callers 10

maxnFunction · 0.85
findfieldFunction · 0.85
luaB_nextFunction · 0.85
luaL_traverse_tableFunction · 0.85
GTESTFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected