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

Go to the source code of this file.
| Macros | |
| #define | MERROR_OK 0x0000 | 
| #define | MERROR_USR 0x0001 | 
| Application-specific error.  More... | |
| #define | MERROR_OVERFLOW 0x0002 | 
| #define | MERROR_FILE 0x0004 | 
| #define | MERROR_ALLOC 0x0008 | 
| #define | MERROR_PARSE 0x0010 | 
| #define | MERROR_GUI 0x0020 | 
| #define | MERROR_SND MERROR_GUI | 
| #define | MERROR_WAIT 0x0040 | 
| #define | MERROR_EXEC MERROR_WAIT | 
| #define | MERROR_TIMEOUT 0x0080 | 
| #define | MERROR_PREEMPT (MERROR_EXEC | MERROR_TIMEOUT) | 
| Indicates MLISP_AST_NODE can be executed again on next step iter pass. | |
| #define | MERROR_RESET (MERROR_EXEC | MERROR_PARSE) | 
| Indicates MLISP_EXEC_STATE has reached a condition where it has run out of instructions. | |
| #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) | 
| Typedefs | |
| typedef uint16_t | MERROR_RETVAL | 
| Return type indicating function returns a value from this list. | |