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

Function luaB_ipairs

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

** 'ipairs' function. Returns 'ipairsaux', given "table", 0. ** (The given "table" may not be a table.) */

Source from the content-addressed store, hash-verified

291** (The given "table" may not be a table.)
292*/
293static int luaB_ipairs (lua_State *L) {
294 luaL_checkany(L, 1);
295 lua_pushcfunction(L, ipairsaux); /* iteration function */
296 lua_pushvalue(L, 1); /* state */
297 lua_pushinteger(L, 0); /* initial value */
298 return 3;
299}
300
301
302static int load_aux (lua_State *L, int status, int envidx) {

Callers

nothing calls this directly

Calls 3

luaL_checkanyFunction · 0.85
lua_pushvalueFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected