Re: FW: 2.5.34: IR __FUNCTION__ breakage

From: Jean Tourrilhes (jt@bougret.hpl.hp.com)
Date: Fri Sep 20 2002 - 17:11:09 EST


On Fri, Sep 20, 2002 at 10:41:38PM +0100, Neil Booth wrote:
> Bjoern A. Zeeb wrote:-
>
> > > > Also, specifically relating to varargs macros as described above, you
> > > > can certainly have a varargs macro with zero args, just look at C99
> > > > varargs macros...
> > >
> > > I remember that it didn't work. Ok, I'll try again.
> >
> > if I remember corretly with C99 if you do s.th. like this (simple
> > sample):
> >
> > #define LOG(level, format, ...) \
> > log(level, format, ##__VA_ARGS__);
>
> No, this is only valid C99 if __VA_ARGS__ is the empty list.
>
> I posted the correct way to write this macro about a week ago that
> works with all versions of GCC (and follows their documented
> behaviour; this stuff *is* all documented).
>
> Neil.

        Err... Can you point me to your post ?

        Jean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:32 EST