M
MaciekL
Hi,
I have to write a macro TEST:
...................
#define M(x) a.x,
#define TEST(a, b) b 0
TEST(bar, M(foo) M(ptr))
...................
result:
a.foo, a.ptr, 0
...................
Question: How to implement macro,
that produces following result:
bar.foo, bar.ptr, 0
I know the following soultion is working correctly,
but it contains redundant information:
...................
#define M(a, x) a.x,
#define TEST(b) b 0
TEST(M(bar, foo) M(bar, ptr))
...................
Regards
I have to write a macro TEST:
...................
#define M(x) a.x,
#define TEST(a, b) b 0
TEST(bar, M(foo) M(ptr))
...................
result:
a.foo, a.ptr, 0
...................
Question: How to implement macro,
that produces following result:
bar.foo, bar.ptr, 0
I know the following soultion is working correctly,
but it contains redundant information:
...................
#define M(a, x) a.x,
#define TEST(b) b 0
TEST(M(bar, foo) M(bar, ptr))
...................
Regards