0

What does "..." parameter in macro function mean and what does it do?

#define ABC(...) some Code Here

I don't understand what does this "..." in parameter help with and when should I use them? I have tried goggling about it but all i get is info on what are macros, macro functions, parametrized macro functions etc.

Jarod42
  • 203,559
  • 14
  • 181
  • 302
Karani.pranay
  • 191
  • 2
  • 11
  • Ew, macros. You should avoid them, they are simply bad. `...` in C means variadric function; perhaps it's the same in the preprocessor? – twentylemon Aug 06 '15 at 02:28

1 Answers1

0

The ... is for variadic macro and it is generally used with __VA_ARGS__ which is its expansion.

Jarod42
  • 203,559
  • 14
  • 181
  • 302