|
|
#define | merror_sz_to_retval(sz) ((sz) * -1) |
| |
|
#define | merror_retval_to_sz(retval) ((retval) * -1) |
| |
| #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) maug_cleanup_if_null_msg( type, ptr, err, "failed to allocate " #ptr "!" ) |
| |
|
#define | maug_cleanup_if_null_alloc(type, ptr) maug_cleanup_if_null_msg( type, ptr, MERROR_ALLOC, "failed to allocate " #ptr "!" ) |
| |
|
#define | maug_cleanup_if_null_lock(type, ptr) maug_cleanup_if_null_msg( type, ptr, MERROR_ALLOC, "failed to lock " #ptr "!" ) |
| |
|
#define | maug_cleanup_if_null_file(ptr) maug_cleanup_if_null_msg( FILE*, ptr, MERROR_FILE, "failed to open FILE!" ) |
| |
| #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) maug_cleanup_if_lt( a, b, SIZE_T_FMT, MERROR_OVERFLOW ) |
| |
| #define | maug_cleanup_if_ge(a, b, fmt, err) |
| |
|
#define | maug_cleanup_if_ge_overflow(a, b) maug_cleanup_if_ge( a, (size_t)(b), SIZE_T_FMT, MERROR_OVERFLOW ) |
| |
| #define | maug_cleanup_if_eq(a, b, fmt, err) |
| |
| #define | maug_cleanup_if_ne(a, b, fmt, err) |
| |