| 802 | } |
| 803 | |
| 804 | SQInteger ScriptList::_nexti(HSQUIRRELVM vm) |
| 805 | { |
| 806 | if (sq_gettype(vm, 2) == OT_NULL) { |
| 807 | if (this->IsEmpty()) { |
| 808 | sq_pushnull(vm); |
| 809 | return 1; |
| 810 | } |
| 811 | sq_pushinteger(vm, this->Begin()); |
| 812 | return 1; |
| 813 | } |
| 814 | |
| 815 | SQInteger idx; |
| 816 | sq_getinteger(vm, 2, &idx); |
| 817 | |
| 818 | SQInteger val = this->Next(); |
| 819 | if (this->IsEnd()) { |
| 820 | sq_pushnull(vm); |
| 821 | return 1; |
| 822 | } |
| 823 | |
| 824 | sq_pushinteger(vm, val); |
| 825 | return 1; |
| 826 | } |
| 827 | |
| 828 | SQInteger ScriptList::Valuate(HSQUIRRELVM vm) |
| 829 | { |
nothing calls this directly
no test coverage detected