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: Preprocessor keyword #echo is missing


Hello,

Thank you for the reply.

while #warning is a work around, it means the text i want outputing during the compilation is not.

I would like to have code blocks such as

#ifdef GUI
#echo Using GUI code block

......;
#else
#echo Using non-GUI code block
// non GUI code

...;

#endif


Falk Hueffner wrote:
"J. Grant" <now3d@gmx.net> writes:


#echo seems to be missing, unless there is an equivelent command i can
use to debug preprocessor blocks of code.

I think #echo would be very useful to add, other compilers support it.

I'm not sure what "#echo" is supposed to do, but perhaps "#warning" is
helpful for you.







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