How to use {++ } feature in spin2cpp?
How do I use the spin2cpp feature to pass through code to the C++ output? I tried
and
and
And I get
What am I missing?
{++
// my comment
}
and
{++
// my comment
;
}
and
{++
//
// and here are the C versions of the methods
//
int32_t test95::Square(int32_t x)
{
return x*x;
}
}
And I get
../spinsource/quadrature_encoder.spin:48: syntax errorThe line reference is the line immediately following the {++ } annotated block.
What am I missing?

Comments
{ indicate to spin2cpp that it should not output Spin methods } {++!nospin} { the Spin version of the methods } PUB Square(x) return x*x {++ // // and here are the C versions of the methods // int32_t test95::Square(int32_t x) { return x*x; } }