|
PebbleOS
|
Assertions of the utility library. More...
Macros | |
| #define | UTIL_ASSERT(expr) |
| Assert that an expression is true. | |
Functions | |
| void | util_assertion_failed (const char *filename, int line) |
| Handle a failed UTIL_ASSERT(). | |
Assertions of the utility library.
| #define UTIL_ASSERT | ( | expr | ) |
Assert that an expression is true.
Always enabled.
| expr | Expression. |
| void util_assertion_failed | ( | const char * | filename, |
| int | line | ||
| ) |
Handle a failed UTIL_ASSERT().
The library provides a weak implementation that logs and exits; the firmware overrides it to crash with a core dump.
| filename | Source file name. |
| line | Source line number. |