Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 (...
Yunus King's user avatar
  • 1,271