This is the mail archive of the gcc-help@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: preprocessor expansion and defines


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


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