MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_next

Function lua_next

Source/Misc/lua/src/lua.c:2822–2836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2820
2821
2822LUA_API int lua_next (lua_State *L, int idx) {
2823StkId t;
2824int more;
2825lua_lock(L);
2826t = index2adr(L, idx);
2827api_check(L, ttistable(t));
2828more = luaH_next(L, hvalue(t), L->top - 1);
2829if (more) {
2830api_incr_top(L);
2831}
2832else /* no more elements */
2833L->top -= 1; /* remove key */
2834lua_unlock(L);
2835return more;
2836}
2837
2838
2839LUA_API void lua_concat (lua_State *L, int n) {

Callers 8

register_Method · 0.85
copy_member_tableFunction · 0.85
applyMethod · 0.85
basic_iteratorMethod · 0.85
incrementMethod · 0.85
luaB_nextFunction · 0.85
foreachFunction · 0.85
maxnFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected