This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Do TI compilers support variadic macros ?!

Wondering if TI compilers support macros with variable number of arguments. I know its not ANSI C..

I was trying to compile something like this (but with no luck):-

#define myPrint(mask, format, args...)   (someFlags & (mask)) ? standardPrint(mask, format, args) : NULL)

Is this supported ? How do I refer to the variable arguments (as args or something else ?!). Is there a special compiler option I should be using ?!

 

Thanks,

Gunjan