Re: preprocessor expansion and defines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 11, 2011 at 13:58, John Graham
<johngavingraham@xxxxxxxxxxxxxx> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux