3 ms·
It's a good introduction to the preprocessor, but I would dispute that it's advanced tricks. The content is definitely interesting, but also very standard pract
by tux3 11y ago
It's a good introduction to the preprocessor, but I would dispute that it's advanced tricks.
The content is definitely interesting, but also very standard practice.
There are many wonderful and horrible things that can be done with macros, and some people get very creative, sometimes to a fault.
It's always a special feeling to see macros taking as argument other macros, all of that spreads through a deep hierarchy over several files!
- vmorgulis 11y ago> It's a good introduction to the preprocessor, but I would dispute that it's advanced tricks. Yes. The X macro is missing for example. https://en.wikipedia.org/wiki/X_Macro https://en.wikipedia.org/wiki/X_Macro I would also add #error, #line... and command line options to get the preprocessed output.
- dang 11y ago> I would dispute that it's advanced tricks Ok, we took out "advanced" and put in "C". HN readers are like sandpaper for titles. My thought of the day.