Quote:
Originally Posted by
shamrock
@achenle:
Embedded spaces in preprocessor #defines are always a cause of confusion and error...however the issue with the OP is one of supplying a compiler statement to a preprocessor...
That was a simple off-the-cuff example to demonstrate the semantic and syntax differences between "typedef" and "#define".
The fact that whitespace is treated completely differently in typedef and #define code is another reason to never replace typedef's with #define's.
If you read the link the OP provided, you'd see his problem is compiling. He's not feeding code to a preprocessor except as part of compiling. And I'd love to see a preprocessor so lame it couldn't handle typedef's, which are part of the language spec.
"Find out what's broken and fix it" is much better than "change this and hope it works".