{{#global}}
class Point {
public:
int x, y;
Point ();
Point (int,int);
};
Point::Point () {
x = 0;
x = 0;
}
Point::Point (int a, int b) {
x = a;
y = b;
}
{{/global}}
using Type = Point*;
struct State {
Type point;
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
auto x = getValue<input_X>(ctx);
auto y = getValue<input_Y>(ctx);
auto state=getState(ctx);
state->point = new Point(x,y);
emitValue<output_POINT>(ctx, state->point);
}