[TUHS] History of popularity of C

Richard Salz rich.salz at gmail.com
Tue Jun 9 01:20:58 AEST 2020


> But yeah, I'd prefer the if(0) type of elimination.
>

Some parts of OpenSSL do this, and it seems to work well across a pretty
wide variety of platforms/toolchains.

A really important benefit is that you get code syntax-checked as opposed
to unused #ifdef branches rotting.  A minor benefit is you don't have ifdef
spaghetti around local variables, to avoid "xxx is not used" warnings.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200608/50d063a7/attachment.htm>


More information about the TUHS mailing list