| 193 | |
| 194 | |
| 195 | static int luaB_next (lua_State *L) { |
| 196 | luaL_checktype(L, 1, LUA_TTABLE); |
| 197 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 198 | if (lua_next(L, 1)) |
| 199 | return 2; |
| 200 | else { |
| 201 | lua_pushnil(L); |
| 202 | return 1; |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | |
| 207 | static int luaB_pairs (lua_State *L) { |
nothing calls this directly
no test coverage detected