Am 22.10.2013 20:41 schrieb "Nikita Popov" <[email protected]>:
>
> If you want to handle uncaught exceptions via auto_prepend_file you can
use set_exception_handler(). It will register a global handler that is
invoked on an uncaught exception.
Fair enough, thanks.
> Generally anything that uses a global handler (e.g. for assertion
failures...) turns out to be a PITA when you try to combine multiple
libraries which want different handlers. In the end you can't really use
any such handlers in a portable library. I'd like assertions to be usable
in libraries.
How do you envision that to work in practise with the exception approach?
Make every externally visible function and method in the library contain a
suitable try/catch block?
best regards
Patrick