MCPcopy Create free account
hub / github.com/crownengine/crown / luaB_ipairs

Function luaB_ipairs

3rdparty/lua/src/lbaselib.c:257–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255
256
257static int luaB_ipairs (lua_State *L) {
258 luaL_checktype(L, 1, LUA_TTABLE);
259 lua_pushvalue(L, lua_upvalueindex(1)); /* return generator, */
260 lua_pushvalue(L, 1); /* state, */
261 lua_pushinteger(L, 0); /* and initial value */
262 return 3;
263}
264
265
266static int load_aux (lua_State *L, int status) {

Callers

nothing calls this directly

Calls 3

luaL_checktypeFunction · 0.70
lua_pushvalueFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected