** Traversal function for 'ipairs' */
| 244 | ** Traversal function for 'ipairs' |
| 245 | */ |
| 246 | static int ipairsaux (lua_State *L) { |
| 247 | lua_Integer i = luaL_checkinteger(L, 2) + 1; |
| 248 | lua_pushinteger(L, i); |
| 249 | return (lua_geti(L, 1, i) == LUA_TNIL) ? 1 : 2; |
| 250 | } |
| 251 | |
| 252 | |
| 253 | /* |
nothing calls this directly
no test coverage detected