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

Function ipairsaux

3rd/lua-5.4.3/src/lbaselib.c:282–286  ·  view source on GitHub ↗

** Traversal function for 'ipairs' */

Source from the content-addressed store, hash-verified

280** Traversal function for 'ipairs'
281*/
282static int ipairsaux (lua_State *L) {
283 lua_Integer i = luaL_checkinteger(L, 2) + 1;
284 lua_pushinteger(L, i);
285 return (lua_geti(L, 1, i) == LUA_TNIL) ? 1 : 2;
286}
287
288
289/*

Callers

nothing calls this directly

Calls 3

luaL_checkintegerFunction · 0.85
lua_pushintegerFunction · 0.85
lua_getiFunction · 0.70

Tested by

no test coverage detected