MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / ipairsaux

Function ipairsaux

extlibs/lua/src/lbaselib.c:281–285  ·  view source on GitHub ↗

** Traversal function for 'ipairs' */

Source from the content-addressed store, hash-verified

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

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