| 255 | } |
| 256 | |
| 257 | txBoolean fxIteratorNext(txMachine* the, txSlot* iterator, txSlot* next, txSlot* value) |
| 258 | { |
| 259 | mxPushSlot(iterator); |
| 260 | mxPushSlot(next); |
| 261 | mxCall(); |
| 262 | mxRunCount(0); |
| 263 | if (!mxIsReference(the->stack)) |
| 264 | mxTypeError("iterator result: not an object"); |
| 265 | mxDub(); |
| 266 | mxGetID(mxID(_done)); |
| 267 | if (fxToBoolean(the, the->stack)) { |
| 268 | mxPop(); |
| 269 | mxPop(); |
| 270 | return 0; |
| 271 | } |
| 272 | mxPop(); |
| 273 | mxGetID(mxID(_value)); |
| 274 | mxPullSlot(value); |
| 275 | return 1; |
| 276 | } |
| 277 | |
| 278 | void fxIteratorReturn(txMachine* the, txSlot* iterator, txBoolean abrupt) |
| 279 | { |
no test coverage detected