M
Mark
Hi
I was reading http://c-faq.com/ansi/stringize.html I'd like to have a
similar functionality for pasting tokens with '##' operator. The page says
that the same approcah should be used for that. Could you give me a hint how
to implement such macros:
#define Str(x, y) x ## y /* two args paste together */
#define XStr(x, y) Str(x, y)
XStr expands first in to Str(), in the second step Str() expands into 'x'
and 'y' merged together.
How will I stringize the result of 'x ## y' ? I think there should be one
more step in here, but where?
Thanks in advance.
I was reading http://c-faq.com/ansi/stringize.html I'd like to have a
similar functionality for pasting tokens with '##' operator. The page says
that the same approcah should be used for that. Could you give me a hint how
to implement such macros:
#define Str(x, y) x ## y /* two args paste together */
#define XStr(x, y) Str(x, y)
XStr expands first in to Str(), in the second step Str() expands into 'x'
and 'y' merged together.
How will I stringize the result of 'x ## y' ? I think there should be one
more step in here, but where?
Thanks in advance.