I have a variadic macro and a regular macro. I use them like this:
LIST(
ELEM(a),
ELEM(b)
// usually about 4-8 elements
)
I would like LIST
to automatically invoke ELEM
on each argument so that I can write LIST(a, b)
instead of LIST(ELEM(a), ELEM(b))
How can I achieve this without using a preprocessing library? A detailed explanation or a link to one would be appreciated.