| 424 | } |
| 425 | |
| 426 | int Script::Pairs(lua_State* pState) { |
| 427 | // 1 table |
| 428 | if (!lua_istable(pState, 1)) { |
| 429 | SCRIPT_BEGIN(pState) |
| 430 | SCRIPT_ERROR("pairs on a ", lua_typename(pState,lua_type(pState, 1)), " value") |
| 431 | SCRIPT_END |
| 432 | return 0; |
| 433 | } |
| 434 | lua_pushcfunction(pState,&Next); |
| 435 | lua_pushvalue(pState, 1); |
| 436 | return 2; |
| 437 | } |
| 438 | |
| 439 | int Script::IPairs(lua_State* pState) { |
| 440 | // 1 table |
nothing calls this directly
no outgoing calls
no test coverage detected