defining a comment?

Chris Torek chris at mimsy.UUCP
Wed Sep 14 11:38:54 AEST 1988


In article <5438 at techunix.BITNET> benny at techunix.BITNET (Benny Pinkas) writes:
>Can I use the Preprocessor to define a comment?

>#define COM /*this is a comment*/

This is legal; it is merely useless.

>or even

>#define STARTCOM /*

This is rather dubious.

>Usually the text after the /* is considered as a comment and is not part
>of the macro definition.

Why should you care?  You cannot (portably) view the text (if any) emitted
by the preprocessor, which may well be an integral part of the compiler.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list