preprocessor expansion and defines

Adam Mercer ramercer@gmail.com
Wed May 11 19:34:00 GMT 2011


On Wed, May 11, 2011 at 13:58, John Graham
<johngavingraham@googlemail.com> wrote:
> You need to stringize TYPECODE twice, or you'll get (as you are
> presently) #TYPECODE:
>
> #define STRING2(a) STRING(a)
> #define STRING(a) #a

Thanks a lot! That does the trick!

Cheers

Adam



More information about the Gcc-help mailing list