This is the mail archive of the gcc-bugs@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: c++/8297: problem with preprocessor


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.


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