F
Franz Müller
Hi there,
I'm searching for a whitespace-free macro that does the following:
STRING_LIST(a, b,c ,d) => "a,b,c,d" (No blanks/whitespaces)
The following macro:
#define STRING_LIST(args...) #args
outputs: "a, b,c ,d" which causes some problems with the functions that
handle this string.
I already had a look on recusion, but this doesn't really work, because an
iterative macro-replacement is not executed by the preprocessor.
Any Ideas where or how to start?
Best regards,
Franz
I'm searching for a whitespace-free macro that does the following:
STRING_LIST(a, b,c ,d) => "a,b,c,d" (No blanks/whitespaces)
The following macro:
#define STRING_LIST(args...) #args
outputs: "a, b,c ,d" which causes some problems with the functions that
handle this string.
I already had a look on recusion, but this doesn't really work, because an
iterative macro-replacement is not executed by the preprocessor.
Any Ideas where or how to start?
Best regards,
Franz