view src/parallel_execution/test/printIterator.cbc @ 433:d920f3a3f037

Refactoring cuda.c
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 17 Oct 2017 15:47:33 +0900
parents e958a409943c
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);
}