| 236 | |
| 237 | |
| 238 | static int luaB_pairs (lua_State *L) { |
| 239 | luaL_checktype(L, 1, LUA_TTABLE); |
| 240 | lua_pushvalue(L, lua_upvalueindex(1)); /* return generator, */ |
| 241 | lua_pushvalue(L, 1); /* state, */ |
| 242 | lua_pushnil(L); /* and initial value */ |
| 243 | return 3; |
| 244 | } |
| 245 | |
| 246 | |
| 247 | static int ipairsaux (lua_State *L) { |
nothing calls this directly
no test coverage detected