How to use {++ } feature in spin2cpp?
SRLM
Posts: 5,045
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