| 11088 | |
| 11089 | |
| 11090 | static int luaB_next (lua_State *L) { |
| 11091 | luaL_checktype(L, 1, LUA_TTABLE); |
| 11092 | lua_settop(L, 2); /* create a 2nd argument if there isn't one */ |
| 11093 | if (lua_next(L, 1)) |
| 11094 | return 2; |
| 11095 | else { |
| 11096 | lua_pushnil(L); |
| 11097 | return 1; |
| 11098 | } |
| 11099 | } |
| 11100 | |
| 11101 | |
| 11102 | static int luaB_pairs (lua_State *L) { |
nothing calls this directly
no test coverage detected