[cfe-dev] Variadic macro support test

Edward Diener eldlistmailingz at tropicsoft.com
Mon Sep 30 17:16:14 PDT 2013


On 9/30/2013 3:24 PM, Eli Friedman wrote:
> On Mon, Sep 30, 2013 at 10:11 AM, Óscar Fuentes <ofv at wanadoo.es
> <mailto:ofv at wanadoo.es>> wrote:
>
>     Edward Diener
>     <eldlistmailingz at tropicsoft.com
>     <mailto:eldlistmailingz at tropicsoft.com>>
>     writes:
>
>      > Which predefined macro(s) allows me to test whether clang supports
>      > variadic macros when compiling ?
>
>     I guess that checking the compiler's version is okay. IIRC they are
>     supported since 3.1, at least.
>
>
> I would suggest just assuming all versions of clang support variadic macros.

I can assume that but it would be good if clang had an has_feature macro 
to test it. But since i could not find such a macro it does seem as if 
you are correct and clang must have always supported variadic macros.





More information about the cfe-dev mailing list