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
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general