Re: preprocessor/2883: cpp stringizing problem 1

2001-05-20 Thread Carlo Wood
On Sun, May 20, 2001 at 08:44:32PM +0200, Markus F.X.J. Oberhumer wrote: > $ gcc-3.0 -c -Werror bug02.c > bug02.c:13:23: pasting ""_"" and ""foo"" does not give a valid preprocessing > token ... > #define ASM_NAME(x) __asm__("_" ## #x) A string literal can't form a new preprocessing token by c

Re: preprocessor/2883: cpp stringizing problem 1

2001-05-20 Thread Zack Weinberg
On Sun, May 20, 2001 at 08:44:32PM +0200, Markus F.X.J. Oberhumer wrote: > $ gcc-3.0 -c -Werror bug02.c > bug02.c:13:23: pasting ""_"" and ""foo"" does not give a valid preprocessing > token ... > #define ASM_NAME(x) __asm__("_" ## #x) This is not valid C. As it says, pasting together the s