| 224 | |
| 225 | |
| 226 | static int luaB_next (lua_State *L) { |
| 227 | luaL_checktype(L, 1, LUA_TTABLE); |
| 228 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 229 | if (lua_next(L, 1)) |
| 230 | return 2; |
| 231 | else { |
| 232 | lua_pushnil(L); |
| 233 | return 1; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | |
| 238 | static int luaB_pairs (lua_State *L) { |
nothing calls this directly
no test coverage detected