All Questions
1 question
3
votes
2
answers
125
views
Variadic macro expansion's going wrong
Consider the following code
#define COMB(F, ...) F(__VA_ARGS__)
#define ADD(X, Y) (X + Y)
int foo() {
return COMB(ADD, 1, 2);
}
I have done some experiments on Godbolt. Microsoft VS v19.22 (...