De-duplicate __FILE__, __LINE__ plus some error reporting cleanup (backport to v9_18)
The UNEXPECTED_ERROR and FATAL_ERROR macros seemed to be unnecessarily tedious to use, so I moved the __FILE__
and __LINE__
arguments into the macros. Then I added a couple of similar macros that include a message from strerror(). It also seemed useful to include __func__
in the error rubric.
Backport of !6914 (merged)
Edited by Michał Kępień