Sujet : Re: Block Comments Or Rest-Of-Line Comments?
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 22. Mar 2024, 17:20:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utkb40$311sb$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 3/21/24 15:23, Keith Thompson wrote:
Richard Harnden <richard.nospam@gmail.invalid> writes:
[...]
And sometimes, when it's not a really a comment, but rather a block of
code I don't want right now:
>
#ifdef 0
...
#endif
I think you mean "#if 0".
I'm sure he did. However, I'd like to mention that I have occasionally
used #ifdef with a macro name that I haven't #defined, and have no plans
to #define, but which describes the reason why I'm commenting this
section out. This is purely to document my reason, but should I ever
change my mind, I can simply #define the corresponding macro.