Hi Torsten,

Splint doesn't support ... in macro definitions.  Variadic macros (as used
in your example) are in ISO C99 though, so they should be supported.

Splint supports gcc's __attribute__ syntax at the level of ignoring it
(but parsing it without complaint).

--- Dave

On Mon, 12 Aug 2002, Torsten Mohr wrote:

> Hi,
>
> i use gcc and some of its extensions, for example:
>
> #define tmError(lev, fmt, ...)        \
>       tmErrorFunc(lev,  __FILE__, __LINE__, fmt, __VA_ARGS__)
>
> It seems that "+gnuextensions" doesn't enable this syntax.
>
> This would also be great for some embedded code that uses
> extensions like "__attribute__ ((section))".
>
> Is there some other way to express the above #define in ANSI C?
>
>
> Best regards,
> Torsten.
>

Reply via email to