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]
Other format: [Raw text]

Re: 3.1 preprocessor regression?


Zack Weinberg wrote:
> On Thu, May 16, 2002 at 05:48:46PM -0700, J.T. Conklin wrote:
> > This code:
> > 
> >         #define anglequote(x) < ## x ## >
> >         #include anglequote(stdio.h)
> 
> Serious question: Why on earth would you do this?
> 
> You can fix your code by removing the ## markers, they are and have
> always been unnecessary.

Delete the spaces around the '##', too.   Make it:

	#define anglequote(x) <x>

Unlike the original code, I've verified that this works on a variety of
conforming compilers.

RJL


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