tor 2012-06-14 klockan 10:23 -0600 skrev Alex Rousskov:
> > +#define DUMP_EXT_ACL_TYPE_FMT(a, fmt, ...) \
> > + case _external_acl_format::EXT_ACL_##a: \
> > + storeAppendPrintf(sentry, fmt, ##__VA_ARGS__); \
> > + break
>
> I do not see Squid using __VA_ARGS__ currently. Are you sure it is
> portable, especially in the ## context? If you have not tested this
> outside Linux, are you OK with us pulling out this patch if it breaks
> the build?
Checking.. seems all platform we care about should support it by now.
http://en.wikipedia.org/wiki/Variadic_macro
But there is some variance on how an empty list of variadic arguments is
handled. Some require at least one argument to avoid syntax errors in
resulting code. (the , before ##__VA_ARGS__ always emitted)
Regards
HEnrik
Received on Fri Jun 15 2012 - 12:16:25 MDT
This archive was generated by hypermail 2.2.0 : Sat Jun 16 2012 - 12:00:09 MDT