NSBlog
"A failure in the hot air department"
Showing entries tagged "preprocessor". Full blog index.
Friday Q&A 2015-03-20: Preprocessor Abuse and Optional Parentheses
at 2015-03-20 14:23
The other day I ran into an interesting problem: how can you write a C preprocessor macro that removes parentheses surrounding its argument, but leaves the argument alone if no parentheses are present? For today's article, I'm going to share my solution.
Friday Q&A 2012-08-24: Things You Never Wanted To Know About C
at 2012-08-24 13:15
It's been a bit since I did an article, but I'm back again, with a somewhat off-the-cuff treatment of a very twisted set of code I use to pretend that C has exceptions. I delve into little-known extensions of C, Linux compatibility, and worst of all,
goto
, so be warned!