This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: can we define a comment?


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.
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]