MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_next

Function lua_next

3rd/lua-5.4.3/src/lapi.c:1245–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243
1244
1245LUA_API int lua_next (lua_State *L, int idx) {
1246 Table *t;
1247 int more;
1248 lua_lock(L);
1249 api_checknelems(L, 1);
1250 t = gettable(L, idx);
1251 more = luaH_next(L, t, L->top - 1);
1252 if (more) {
1253 api_incr_top(L);
1254 }
1255 else /* no more elements */
1256 L->top -= 1; /* remove key */
1257 lua_unlock(L);
1258 return more;
1259}
1260
1261
1262LUA_API void lua_toclose (lua_State *L, int idx) {

Callers 9

formatFunction · 0.85
range_formatFunction · 0.85
type_formatFunction · 0.85
set_default_configFunction · 0.85
spell_analysisFunction · 0.85
CreateFromLuaFunction · 0.85
update_name_style_configFunction · 0.85
luaB_nextFunction · 0.85
findfieldFunction · 0.85

Calls 2

gettableFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected