Re: Macro expansion and the preprocessor

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

 



On Fri, Jan 14, 2011 at 12:31, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:

> The problem is that the ## operator doesn't expand its arguments, so
> TYPE is used verbatim.
>
> You need to add some levels of indirection, so that GTYPE expands to a
> macro which expands TYPE, and passes that to another macro which does
> the concatenation.

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