This is the mail archive of the gcc@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]

Re: macros with traditional cpp


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~

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