| 266 | |
| 267 | |
| 268 | static int luaB_next (lua_State *L) { |
| 269 | luaL_checktype(L, 1, LUA_TTABLE); |
| 270 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 271 | if (lua_next(L, 1)) |
| 272 | return 2; |
| 273 | else { |
| 274 | lua_pushnil(L); |
| 275 | return 1; |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | |
| 280 | static int pairscont (lua_State *L, int status, lua_KContext k) { |
nothing calls this directly
no test coverage detected