I was wandering if there is a way to define a variadic macro that handles its last argument in a different way.
For example, can I define a macro that prints a custom separator after every argument except for the last one?
i.e. how to define MACRO:
MACRO(a, lot, of, bars)
In order to produce this output:
a|lot|of|bars
(EDIT: it was pointed out to me by the comments that the case of ,
as separator is trivial)