| 819 | } |
| 820 | |
| 821 | void PiuContainer_run(xsMachine *the) |
| 822 | { |
| 823 | xsIntegerValue c = xsToInteger(xsArgc), i; |
| 824 | PiuContainer* self = PIU(Container, xsThis); |
| 825 | if ((*self)->application) { |
| 826 | if (xsTest(xsArg(0))) { |
| 827 | PiuTransition* transition = PIU(Transition, xsArg(0)); |
| 828 | xsAssert((*transition)->container == NULL); |
| 829 | xsResult = xsNew1(xsGlobal, xsID_Array, xsNumber(c)); |
| 830 | (void)xsCall0(xsResult, xsID_fill); |
| 831 | xsSetAt(xsResult, xsInteger(0), xsThis); |
| 832 | for (i = 1; i < c; i++) |
| 833 | xsSetAt(xsResult, xsInteger(i), xsArg(i)); |
| 834 | xsSet(xsArg(0), xsID_parameters, xsResult); |
| 835 | PiuTransitionRun(transition, self); |
| 836 | } |
| 837 | else { |
| 838 | PiuTransition* transition = (*self)->transition; |
| 839 | if (transition) |
| 840 | PiuTransitionComplete(transition, self); |
| 841 | } |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | void PiuContainer_swap(xsMachine *the) |
| 846 | { |
nothing calls this directly
no test coverage detected