comparison src/parallel_execution/test/printIterator.cbc @ 532:3881b91f5820

Generate multiDimIterator_test stub
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Sat, 27 Jan 2018 23:23:38 +0900
parents e958a409943c
children
comparison
equal deleted inserted replaced
531:c31912aaa378 532:3881b91f5820
1 #include "../../context.h" 1 #include "../../context.h"
2 #include <stdio.h> 2 #include <stdio.h>
3 __code printIterator(struct MultiDim* multiDim, __code next(...)) { 3 __code printIterator(struct MultiDim* multiDim, __code next(...)) {
4 printf("x: %d, y: %d, z: %d\n", multiDim->x, multiDim->y, multiDim->z); 4 printf("x: %d, y: %d, z: %d\n", multiDim->x, multiDim->y, multiDim->z);
5 goto meta(context, next); 5 goto next(...);
6 } 6 }
7
8 __code printIterator_stub(struct Context* context) {
9 goto printIterator(context,
10 &context->data[context->idg]->MultiDim,
11 context->next);
12 }