STXXL
1.4.0
|
The STXXL provides several pre-defined exception macros to detect run-time errors. The basic ones are:
In addition, we also defined conditional throw macros, which check the outcome of a function call:
For checking system calls which set errno, the following macros are used to also provide strerror information for the user:
For checking pthread system calls, a special macro is needed, because these do not set errno. Instead they return the errno value:
And for WINAPI calls there is a special macro to call GetLastError and format it in a nice way: