As for the updated question, by the use of auxiliary macro VA_ARGS like
the following, the arguments will be expanded as expected.
#define VA_ARGS(...) , ##__VA_ARGS__
#define CALL(f,...) FN(f)->call((ref(new LinkedList()) VA_ARGS(__VA_ARGS__)))
As for the updated question, by the use of auxiliary macro VA_ARGS like
the following, the arguments will be expanded as expected.
#define VA_ARGS(...) , ##__VA_ARGS__
#define CALL(f,...) FN(f)->call((ref(new LinkedList()) VA_ARGS(__VA_ARGS__)))