MOS Source Code
|
A platform-independent library of useful data structures and functions. More...
Topics | |
libs.HashMap | |
A simple hashmap. | |
libs.LinkedList | |
A circular, doubly-linked list. | |
libs.RingBuffer | |
A ring buffer. | |
libs.DownStack | |
A stack that grows down. | |
libs.AnsiColors | |
ANSI color codes. | |
libs.Stdio | |
Standard input/output functions. | |
libs.Stdlib | |
Some standard library functions. | |
libs.String | |
String manipulation functions, similar to the ones in the C standard library. | |
Macros | |
#define | MOS_LIB_ASSERT(cond) MOS_LIB_ASSERT_X(cond, "") |
#define | MOS_LIB_ASSERT_X(cond, msg, ...) |
#define | MOS_LIB_UNIMPLEMENTED(content) fatal_abort("Unimplemented: %s", content) |
#define | MOS_LIB_UNREACHABLE() fatal_abort("Unreachable code reached") |
#define | mos_panic(fmt, ...) fatal_abort(fmt "\n", ##__VA_ARGS__) |
#define | mos_warn(fmt, ...) fprintf(stderr, "WARN: " fmt "\n", ##__VA_ARGS__) |
Functions | |
MOSAPI | void (1, 2) fatal_abort(const char *fmt |
A platform-independent library of useful data structures and functions.
#define MOS_LIB_ASSERT | ( | cond | ) | MOS_LIB_ASSERT_X(cond, "") |
Definition at line 14 of file moslib_global.h.
#define MOS_LIB_ASSERT_X | ( | cond, | |
msg, | |||
... ) |
Definition at line 28 of file moslib_global.h.
#define MOS_LIB_UNIMPLEMENTED | ( | content | ) | fatal_abort("Unimplemented: %s", content) |
Definition at line 37 of file moslib_global.h.
Referenced by vsnprintf().
#define MOS_LIB_UNREACHABLE | ( | ) | fatal_abort("Unreachable code reached") |
Definition at line 38 of file moslib_global.h.
Definition at line 39 of file moslib_global.h.
Definition at line 40 of file moslib_global.h.
MOSAPI void | ( | 1 | , |
2 | ) const |
Referenced by _null_read(), _null_write(), invoke_constructors(), main(), pb_field_iter_find(), pb_field_iter_find_extension(), and pb_field_iter_next().