macros with traditional cpp

Richard Henderson rth@cygnus.com
Sun Sep 24 13:57:00 GMT 2000


On Sun, Sep 24, 2000 at 08:48:20PM +0100, Philip Blundell wrote:
> The preprocessor used to accept code like this both with and without 
> -traditional:
> 
> 	#define foo(x...) x
> 	foo(one,two)

It did?  I could have sworn I'd always had problems with that.
Oh, wait, I had problems with

	#define foo(x,y...) x , ## y

> Is this intentional?

It was probably not intentional that macro varargs ever worked
with -tradition, given that my test case failed.

My advice is to not use -traditional with your assembly.


r~


More information about the Gcc mailing list