|
maug
Quick and dirty C mini-augmentation library.
|

Topics | |
| Return Values | |
Files | |
| file | merror.h |
Macros | |
| #define | merror_sz_to_retval(sz) |
| #define | merror_retval_to_sz(retval) |
| #define | maug_cleanup_if_null_msg(type, ptr, err, msg) |
| #define | maug_cleanup_if_not_null(type, ptr, err) |
| #define | maug_cleanup_if_null(type, ptr, err) |
| #define | maug_cleanup_if_null_alloc(type, ptr) |
| #define | maug_cleanup_if_null_lock(type, ptr) |
| #define | maug_cleanup_if_null_file(ptr) |
| #define | maug_cleanup_if_not_ok() |
| #define | maug_cleanup_if_not_ok_msg(msg) |
| #define | maug_cleanup_if_lt(a, b, fmt, err) |
| #define | maug_cleanup_if_lt_overflow(a, b) |
| #define | maug_cleanup_if_ge(a, b, fmt, err) |
| #define | maug_cleanup_if_ge_overflow(a, b) |
| #define | maug_cleanup_if_eq(a, b, fmt, err) |
| #define | maug_cleanup_if_ne(a, b, fmt, err) |
Functions | |
| void | maug_critical_error (const char *msg) |
| Display an error dialog. This is a minimal function that can be called early on (e.g. in the logging API). | |
| #define maug_cleanup_if_eq | ( | a, | |
| b, | |||
| fmt, | |||
| err ) |
| #define maug_cleanup_if_ge | ( | a, | |
| b, | |||
| fmt, | |||
| err ) |
| #define maug_cleanup_if_ge_overflow | ( | a, | |
| b ) |
| #define maug_cleanup_if_lt | ( | a, | |
| b, | |||
| fmt, | |||
| err ) |
| #define maug_cleanup_if_lt_overflow | ( | a, | |
| b ) |
| #define maug_cleanup_if_ne | ( | a, | |
| b, | |||
| fmt, | |||
| err ) |
| #define maug_cleanup_if_not_null | ( | type, | |
| ptr, | |||
| err ) |
| #define maug_cleanup_if_not_ok | ( | ) |
| #define maug_cleanup_if_not_ok_msg | ( | msg | ) |
| #define maug_cleanup_if_null | ( | type, | |
| ptr, | |||
| err ) |
| #define maug_cleanup_if_null_alloc | ( | type, | |
| ptr ) |
| #define maug_cleanup_if_null_file | ( | ptr | ) |
| #define maug_cleanup_if_null_lock | ( | type, | |
| ptr ) |
| #define maug_cleanup_if_null_msg | ( | type, | |
| ptr, | |||
| err, | |||
| msg ) |
| #define merror_retval_to_sz | ( | retval | ) |
| #define merror_sz_to_retval | ( | sz | ) |
| void maug_critical_error | ( | const char * | msg | ) |
Display an error dialog. This is a minimal function that can be called early on (e.g. in the logging API).
This is a rare example of an exception to layering, so that critical early components can display an urgent dialog using higher-level later components.