This is the mail archive of the gcc-help@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: expected declaration specifiers or ... before ( token


Hi Manfred,

I think this will rectify the problem:

#define _C2(func,args) func args

The problem is that the ## preprocessor operator binds two partial
identifiers into one whole identifier.  The parameters specified are not two
partial identifiers (identifier fragments), hence is an error when ##'d
together.

HTH,
--Eljay


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