Introduction
Programming in either C or C++ invariably requires using preprocessor macros at some point. Here’s a collection of macros I...
For further actions, you may consider blocking this person and/or reporting abuse
I was not expecting to find such a high-quality low-level programming post on dev.to.
The STATIC_ASSERT_EXPR is brilliant.
Thanks for sharing.
Thanks. I'm doing my part to raise the bar. The number of low-quality, poorly-written posts is eye-watering. FYI, it's no better on medium.
I agree. Maybe you could post links to your articles to lobste.rs. They would love your post over there.
In any case, I'm now following you. :)
Looking forward to reading your next C articles.
I'd never heard of lobste.rs. I'll give it a look.
I'm currently spending time working on one of my open-source projects rather that writing. In the mean time, there's all my previous articles to read.
I never realized (or I forgot, that's also quite possible) that LINE is the same for all the lines that a macro expands to :o
A macro always expands to a single line. Remember: escaped newlines are eliminated prior to expansion.