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: Macro expansion and the preprocessor


On Fri, Jan 14, 2011 at 12:31, Jonathan Wakely <jwakely.gcc@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]