Mercurial > hg > GearsTemplate
view src/parallel_execution/examples/calc/add.cbc @ 527:929aa06a12f9
Generate par goto code gear stub
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 27 Jan 2018 21:45:58 +0900 |
parents | b81492c74d2b |
children |
line wrap: on
line source
#include "../../../context.h" #include <stdio.h> __code add(struct Integer* input1, struct Integer* input2, __code next(struct Integer* output, ...)) { output->value = input1->value + input2->value; printf("%d + %d = %d\n", input1->value, input2->value, output->value); goto next(output, ...); }