pgsql: Re-implement the ereport() macro using __VA_ARGS__.

2020-03-24 Thread Tom Lane
Re-implement the ereport() macro using __VA_ARGS__. Now that we require C99, we can depend on __VA_ARGS__ to work, and revising ereport() to use it has several significant benefits: * The extra parentheses around the auxiliary function calls are now optional. Aside from being a bit less ugly, th

pgsql: Re-implement the ereport() macro using __VA_ARGS__.

2020-03-24 Thread Tom Lane
Re-implement the ereport() macro using __VA_ARGS__. Now that we require C99, we can depend on __VA_ARGS__ to work, and revising ereport() to use it has several significant benefits: * The extra parentheses around the auxiliary function calls are now optional. Aside from being a bit less ugly, th