[PATCH] Ignore contents of #if 0 blocks.

James Dennett jdennett at googlers.com
Thu May 23 17:57:30 PDT 2013


On Thu, May 23, 2013 at 4:39 PM, Alexander Kornienko <alexfh at google.com> wrote:
>   Found out that if false is used almost exclusively to check if 'false' is defined to 0 ;)

That doesn't match my findings.  All uses of "#if false" I've seen
(outside of (bad) open source code) are used to disable blocks of
code, though there are open source packages which do mis-use it as you
mention.  I consider "#if 0" to be C-style/anachronistic though, so
don't mind me.



More information about the cfe-commits mailing list