** 'ipairs' function. Returns 'ipairsaux', given "table", 0. ** (The given "table" may not be a table.) */
| 255 | ** (The given "table" may not be a table.) |
| 256 | */ |
| 257 | static int luaB_ipairs (lua_State *L) { |
| 258 | #if defined(LUA_COMPAT_IPAIRS) |
| 259 | return pairsmeta(L, "__ipairs", 1, ipairsaux); |
| 260 | #else |
| 261 | luaL_checkany(L, 1); |
| 262 | lua_pushcfunction(L, ipairsaux); /* iteration function */ |
| 263 | lua_pushvalue(L, 1); /* state */ |
| 264 | lua_pushinteger(L, 0); /* initial value */ |
| 265 | return 3; |
| 266 | #endif |
| 267 | } |
| 268 | |
| 269 | |
| 270 | static int load_aux (lua_State *L, int status, int envidx) { |
nothing calls this directly
no test coverage detected