** Traversal function for 'ipairs' */
| 280 | ** Traversal function for 'ipairs' |
| 281 | */ |
| 282 | static int ipairsaux (lua_State *L) { |
| 283 | lua_Integer i = luaL_checkinteger(L, 2) + 1; |
| 284 | lua_pushinteger(L, i); |
| 285 | return (lua_geti(L, 1, i) == LUA_TNIL) ? 1 : 2; |
| 286 | } |
| 287 | |
| 288 | |
| 289 | /* |
nothing calls this directly
no test coverage detected