|
WinTer 0.1.1
Windows Terminal Emulator
|
Assertions and context printing utilities. More...
Macros | |
| #define | debug_break() |
| Triggers a native breakpoint in GDB/LLDB. | |
| #define | ASSERT(expr) |
| Standard runtime assertion. Triggers a debug break on failure. | |
| #define | ASSERT_NOT_NULL(ptr) |
| Asserts that a given pointer is not NULL. | |
Functions | |
| static void | print_context_info (void) |
| Prints OS, architecture, compiler, endianness, build, and C standard to stdout. | |
Assertions and context printing utilities.
| #define ASSERT | ( | expr | ) |
Standard runtime assertion. Triggers a debug break on failure.
| expr | The expression that must evaluate to true (non-zero). |
Definition at line 581 of file base_macros.h.
| #define ASSERT_NOT_NULL | ( | ptr | ) |
Asserts that a given pointer is not NULL.
| ptr | The pointer to check. |
Definition at line 595 of file base_macros.h.
| #define debug_break | ( | ) |
Triggers a native breakpoint in GDB/LLDB.
Definition at line 570 of file base_macros.h.
|
inlinestatic |
Prints OS, architecture, compiler, endianness, build, and C standard to stdout.
Useful as a one-line sanity check at application startup to confirm the binary was compiled with the expected settings.
Example output:
Definition at line 554 of file base_macros.h.
