Pádraig Brady wrote:
> FWIW grep/coreutils use a die() wrapper to achieve this
> for this common idiom.
> 
> [Link to github.com elided]
https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=dad7ab0b7

Thanks for the pointer.

Can we do better than that, without a 'die' macro? Maybe by defining
error and error_at_line as inline functions that use __builtin_constant_p
on the first argument?

Bruno




Reply via email to