MCPcopy Create free account
hub / github.com/axmolengine/axmol / lua_next

Function lua_next

3rdparty/lua/plainlua/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 15

compat53_findfieldFunction · 0.85
clearFunction · 0.85
getMethod · 0.85
getMethod · 0.85
clear_entriesFunction · 0.85
c_lua_nextFunction · 0.85
for_eachMethod · 0.85
lua_array_lengthFunction · 0.85
json_append_objectFunction · 0.85
mapsuperFunction · 0.85
luaB_nextFunction · 0.85

Calls 2

gettableFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected