C, embedded comments and preprocessors
Gary Mills
mills at ccu.umanitoba.ca
Thu Sep 20 10:05:36 AEST 1990
lwv27 at CAS.BITNET writes:
>I have not been able to afford a copy of the new ANSI std for c,
>and perhaps it clarifies the situation.
You are relying on nested comments, and even the original K&R states
that `comments do not nest'.
>I have for some time commented out portions of code by surrounding them by
>a construct similar to:
A better way to remove some code from the compilation is with:
#ifndef OLD_STUFF
lines of code /* line comment */
lines of various text's comments
lines of code /* line comment */
#endif
--
-Gary Mills- -University of Manitoba- -Winnipeg-
More information about the Comp.lang.c
mailing list