|
🔖 prelude
Useful C header files
|
Assertions and other debug tools. More...
Go to the source code of this file.
Macros | |
| #define | debug_break() |
| Causes a debug breakpoint and signals any attached debugger. | |
| #define | debug_msg_always(FMT, ...) |
| Prints a debug message to the standard error output. | |
| #define | panic(FMT, ...) |
| Prints a debug message, then invokes debug_break(). | |
| #define | debug_msg(FMT, ...) |
| Prints a debug message to the standard error output. | |
| #define | assert_msg(COND, FMT, ...) |
| Performs an assertion, printing a debug message on failure. | |
Assertions and other debug tools.
| #define assert_msg | ( | COND, | |
| FMT, | |||
| ... ) |
Performs an assertion, printing a debug message on failure.
| COND | A condition to test |
| FMT | A format string, as would be passed to printf() |
| #define debug_break | ( | ) |
Causes a debug breakpoint and signals any attached debugger.
| #define debug_msg | ( | FMT, | |
| ... ) |
Prints a debug message to the standard error output.
Automatically included in the message is the file, line, and function this macro was invoked from.
| FMT | A format string, as would be passed to printf() |
| #define debug_msg_always | ( | FMT, | |
| ... ) |
Prints a debug message to the standard error output.
Automatically included in the message is the file, line, and function this macro was invoked from.
| FMT | A format string, as would be passed to printf() |
| #define panic | ( | FMT, | |
| ... ) |
Prints a debug message, then invokes debug_break().