|
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. | |
| #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) |
| #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) |
Typedefs | |
| typedef uint16_t | MERROR_RETVAL |
| Return type indicating function returns a value from this list. | |
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). | |