c++/8297: problem with preprocessor

Neil Booth neil@daikokuya.co.uk
Mon Oct 21 12:54:00 GMT 2002


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.



More information about the Gcc-bugs mailing list