I like the idea of having fprintf/printf etc. alternatives that does the error checking on the spot. This is IMHO the proper approach when there is nothing that the caller can do when that kind of error happens.
However, the current implementation has a flaw: the call to ESL_EXCEPTION_SYS macro will record the same __FILE__ and __LINE__ (ESL_EXCEPTION_SYS) everywhere esl_printf is being used.
Shall we propose MACRO replacement for those functions?
I like the idea of having fprintf/printf etc. alternatives that does the error checking on the spot. This is IMHO the proper approach when there is nothing that the caller can do when that kind of error happens.
However, the current implementation has a flaw: the call to ESL_EXCEPTION_SYS macro will record the same
__FILE__
and__LINE__
(ESL_EXCEPTION_SYS) everywhereesl_printf
is being used.Shall we propose MACRO replacement for those functions?