[lkml]   [2002]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: FW: 2.5.34: IR __FUNCTION__ breakage
    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 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).

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:29    [W:0.018 / U:39.284 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site