can we define a comment?

Eric Fisher joefoxreal@gmail.com
Tue May 16 03:09:00 GMT 2006


But, I don't want take this function-like  way.

2006/5/16, corey taylor <corey.taylor@gmail.com>:
> Kind of an odd request, but I suppose that you could do something like:
>
> #define CMNT(exp)
>
> But then you'd have to wrap the comment:
>
> CMNT(this is a comment)
>
> corey
>
> On 5/15/06, Eric Fisher <joefoxreal@gmail.com> wrote:
> > hi,
> > Anybody knows that if we can define a comment? For a statement such as,
> >   COMMENT this is a comment.
> > will be preprocessed as,
> >   // this is a comment.
> > or something valid and transparent to the compiler? Of cause we can't
> > directly use,
> >   #define COMMENT //
> >
> > Thanks.
> > Eric.
> >
>



More information about the Gcc-help mailing list