MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_next

Function lua_next

lib/lua/src/lapi.c:1253–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1251
1252
1253LUA_API int lua_next (lua_State *L, int idx) {
1254 Table *t;
1255 int more;
1256 lua_lock(L);
1257 api_checknelems(L, 1);
1258 t = gettable(L, idx);
1259 more = luaH_next(L, t, L->top.p - 1);
1260 if (more) {
1261 api_incr_top(L);
1262 }
1263 else /* no more elements */
1264 L->top.p -= 1; /* remove key */
1265 lua_unlock(L);
1266 return more;
1267}
1268
1269
1270LUA_API void lua_toclose (lua_State *L, int idx) {

Callers 4

luaB_nextFunction · 0.85
findfieldFunction · 0.85
luaTableIsArrayFunction · 0.85
luaTableToJsonFunction · 0.85

Calls 2

gettableFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected