view paper/src/metaCodeGearExample.cbc @ 19:046b2b20d6c7 default tip

fix
author ryokka
date Mon, 09 Mar 2020 11:25:49 +0900
parents c7acb9211784
children
line wrap: on
line source

__code add_stub(struct Context* context) {
    // Input Data Gear
	Integer* input1 = &context->data[context->idg + 0]->Integer;
	Integer* input2 = &context->data[context->idg + 1]->Integer;

    // set Continuation
	enum Code next = context->next;

    // Output Data Gear
	Integer** O_output = (Integer **)&context->data[context->odg + 0];
	goto add(context, input1, input2, next, O_output);
}