view src/parallel_execution/test/printIterator.cbc @ 402:e958a409943c

Change iterator implement from oneDim to multiDim
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Fri, 01 Sep 2017 06:18:53 +0900
parents 408b4aab7610
children
line wrap: on
line source

#include "../../context.h"
#include <stdio.h>
__code printIterator(struct MultiDim* multiDim, __code next(...)) {
    printf("x: %d, y: %d, z: %d\n", multiDim->x, multiDim->y, multiDim->z);
    goto meta(context, next);
}

__code printIterator_stub(struct Context* context) {
    goto printIterator(context,
                       &context->data[context->idg]->MultiDim,
                       context->next);
}