Subject: Re: Removal of "wmmail" package
To: None <tech-pkg@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 09/14/2005 17:32:55
On Tue, Sep 13, 2005 at 10:56:20PM +0100, Matthias Scheler wrote:
> #define DM(mbox, msglevel, X...) \
> do { \
> if (mbox == NULL || (mbox)->debug >= msglevel) { \
> printf("wmbiff/%s ", (mbox != NULL) ? (mbox)->label : "NULL"); \
> printf(X); \
> (void)fflush(NULL); \
> } \
> } while(0)
>
> Or is "X..." a C99 feature?
I'm not sure out of memory, but variadic macros are not C89. That's
where the DM(mbox, level, ()) should be used :-)
Joerg