Re:Is the C++ preprocessor still needed?
by slackingoff2017 on Tuesday May 09, 2017 @09:53PM
(#14305375)
What the fuck! I don't know if you're a genius or just really crazy
[ Parent
| on HN ]
Re:Is the C++ preprocessor still needed?
by AceJohnny2 on Tuesday May 09, 2017 @10:04PM
(#14305419)
Meh, it's just using the C PreProcessor, cpp, but driven through GCC.
The C preprocessor is pretty simple (well, until you start wanting to evaluate C expressions as part of your #ifdefs) and very well-known. It's not inherently tied to C (QED), so it makes sense. There are other cases where people use it on something other than C, but as kevin_thibedeau mentions, he'd be better served with a more powerful (and generic) macro processor such as M4.