Using conditional instructions in a macro

Alexandre Oliva aoliva@redhat.com
Fri Aug 1 13:45:00 GMT 2003


On Aug  1, 2003, Pascal Francq <pfrancq@ulb.ac.be> wrote:

> I try to make a macro that uses conditional instructions in it.

This language you're trying to write in is not C.  Move the
#if/#else/#endif out, and define DUMMI in one of the two ways
depending on the test.

That said, this forum is not appropriate for this question.  It's
devoted to the development *of* GCC, not *with* GCC.  Try some forum
devoted to the C language next time (news:comp.lang.c), or, for help
in installing or using GCC, the gcc-help mailing list.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Gcc mailing list