| 336 | |
| 337 | |
| 338 | static int luaB_next(lua_State *L) { |
| 339 | luaL_checktype(L, 1, LUA_TTABLE); |
| 340 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 341 | if (lua_next(L, 1)) |
| 342 | return 2; |
| 343 | else { |
| 344 | lua_pushnil(L); |
| 345 | return 1; |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | |
| 350 | static int luaB_pairs(lua_State *L) { |
nothing calls this directly
no test coverage detected