Mercurial > hg > Papers > 2020 > soto-midterm
annotate src/metaCodeGearExample.cbc @ 1:73127e0ab57c
(none)
author | soto@cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 08 Sep 2020 18:38:08 +0900 |
parents | |
children |
rev | line source |
---|---|
1 | 1 __code add_stub(struct Context* context) { |
2 // Input Data Gear | |
3 Integer* input1 = &context->data[context->idg + 0]->Integer; | |
4 Integer* input2 = &context->data[context->idg + 1]->Integer; | |
5 | |
6 // set Continuation | |
7 enum Code next = context->next; | |
8 | |
9 // Output Data Gear | |
10 Integer** O_output = (Integer **)&context->data[context->odg + 0]; | |
11 goto add(context, input1, input2, next, O_output); | |
12 } | |
13 |