This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8297: problem with preprocessor
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Ritesh Goel <riteshg at pune dot tcs dot co dot in>
- Cc: zack at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Mon, 21 Oct 2002 20:53:58 +0100
- Subject: Re: c++/8297: problem with preprocessor
- References: <20021021064456.8944.qmail@sources.redhat.com> <005101c278d0$da1364f0$85c911ac@riteshg>
Ritesh Goel wrote:-
> Thanx for ur immediate response .
> I want to give comments in my program with using keyword "COMMENT" not
> with // . that should be eliminated during preprocessing .
>
> as COMMENT Line in comment
> instead of
> // Line in comment
>
> I tried to make it using #define but it insert space between that with
> version gcc3.0 .
> It is doing that with previous versions . But there also in the preprocessed
> output it is replacing that with // .
> So when i am taking preprocessed output there, it is taking it as comment .
> And all the comments should be removed in preprocessing . but it is not
> doing that .
>
>
> I am not getting anyway to to do that . Can u help me in that .
This is a Microsoft-ism that we will not duplicate. There is no way
to do what you want with standard C or C++.
Neil.