R
rparimi
Hi,
I have a macro whose value is obtained from a combination of other
macros. E.g
#define ALL_TESTS \
INIT_TEST ("string one", 1) \
DEF_TEST("string two", 2)
Upon execution, the value of ALL_TESTS gets evaluated to something in
this format:
{"string one", 1, NULL}, {"string two", 2, NULL}
I want to cast the above into a string so that I can parse the string
and extract fields of interest. I tried #ALL_TESTS but this doesn't
seem to work.. Is there a way to get this working?
Thanks
I have a macro whose value is obtained from a combination of other
macros. E.g
#define ALL_TESTS \
INIT_TEST ("string one", 1) \
DEF_TEST("string two", 2)
Upon execution, the value of ALL_TESTS gets evaluated to something in
this format:
{"string one", 1, NULL}, {"string two", 2, NULL}
I want to cast the above into a string so that I can parse the string
and extract fields of interest. I tried #ALL_TESTS but this doesn't
seem to work.. Is there a way to get this working?
Thanks