| 320 | |
| 321 | LUAI_FUNC int luaB_next(lua_State *L); |
| 322 | int luaB_next (lua_State *L) { |
| 323 | luaL_checktype(L, 1, LUA_TTABLE); |
| 324 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 325 | if (lua_next(L, 1)) |
| 326 | return 2; |
| 327 | else { |
| 328 | lua_pushnil(L); |
| 329 | return 1; |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | |
| 334 | static int pairscont (lua_State *L, int status, lua_KContext k) { |
nothing calls this directly
no test coverage detected