On Monday, December 8, 2014, I gave a presentation on the C Preprocessor.
There were some questions at the end of the presentation.
- Does the Arduino IDE support Varadic Macros?
The answer at the meeting was, “It should, it is just gnu gcc.exe that we are running.” I have confirmed that this works in the IDE:
#define XXX(…) Serial.println(__VA_ARGS__)
. . .
- Is there a way to get the output of the C preprocessor (which is the input to the compiler)?
I found the command line switch to gcc (-save-temps), but have not found a way to inject that switch into the command line the IDE uses. I found a suggestion to get the java code for the IDE and find/fix it there.
- If you have further questions, use the comments section below.