Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!apple!voder!pyramid!prls!philabs!ttidca!paulb From: paulb@ttidca.TTI.COM (Paul Blumstein) Newsgroups: comp.lang.c Subject: Re: defining a comment? Keywords: preprocessor,comments Message-ID: <3172@ttidca.TTI.COM> Date: 14 Sep 88 16:02:38 GMT References: <5438@techunix.BITNET> Reply-To: paulb@ncc1701.tti.com (Paul Blumstein) Organization: Line-eater Hunting Association Lines: 31 In article <5438@techunix.BITNET> benny%techunix.bitnet@jade.berkeley.edu (Benny Pinkas) writes: +Can I use the Preprocessor to define a comment? +I mean something like: +#define COM /*this is a comment*/ +or even +#define STARTCOM /* + +Usually the text after the /* is considered as a comment and is not part +of the macro definition. +I searched a dozen of C books, and didn't find something of help. Perhaps, If you told us what you want to do exactly, we can be of more help. Why define a comment, when it is already defined? If you wanted a whole block commented out, one technique is: #ifdef COMMENT ... #endif or #if 0 ... #endif ============================================================================= Paul Blumstein | "Life is what is happening while you are Citicorp/TTI | busy making other plans" -- John Lennon Santa Monica, CA +------------------------------------------------- {philabs,csun,psivax}!ttidca!paulb or paulb@ttidca.TTI.COM If caught, the Secretary of Citicorp will disavow all knowlege of my actions.