| 232 | |
| 233 | |
| 234 | static int luaB_next (lua_State *L) { |
| 235 | luaL_checktype(L, 1, LUA_TTABLE); |
| 236 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 237 | if (lua_next(L, 1)) |
| 238 | return 2; |
| 239 | else { |
| 240 | lua_pushnil(L); |
| 241 | return 1; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | |
| 246 | static int luaB_pairs (lua_State *L) { |
nothing calls this directly
no test coverage detected