Bad preprocessor expansion of sketch results in illegal c++ code. [imported] #297
Labels
Component: Preprocessor
The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone
This is Issue 297 moved from a Google Code project.
Added by 2010-07-22T00:52:26.000Z by GorillaCoder.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
Try to compile the below sketch:
The c++ compilation fails because the generated c++ is bad:
It can be fixed by removing the spaces between the name and paren in the initializer for foo.
: foo( 0 )
The text was updated successfully, but these errors were encountered: