***SPAM*** Re: [ofa-general] [PATCH V2 1/3] Create a new library libibnetdisc
Sasha Khapyorsky
sashak at voltaire.com
Wed Jan 21 02:33:59 PST 2009
On 16:41 Tue 23 Dec , Ira Weiny wrote:
>
> +#define IBND_ERROR(...) \
> + { \
> + fprintf(stderr, "%s:%d; ", __FILE__, __LINE__); \
> + fprintf(stderr, __VA_ARGS__); \
> + }
As far as know macro like this (using '##' for var args and without
breaking this in two) will work fine with both gcc and VC:
#define IBND_ERROR(fmt, ...) \
fprintf(stderr, "%s:%d: " fmt, __FILE__, __LINE__, ## __VA_ARGS__)
Sasha
More information about the general
mailing list