This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Continuation character inside MACRO


Hi,

My cross compilation environment is:
Target: m68k-elf
Host:    cygwin  

I wrote a program that includes the following statement:

#define ABC(x)  \
                        x+x

on compiling this program I get the error:
$          test.c:5: parse error before `+'

So if correct the above statement as:
#define ABC(x)  x+x
...the error goes off.


Kindly let me know how to get rid of this, as my source contains a lot of
these types of MACROS.

Thanks

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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