|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Debug assertion and warning utilities. More...
#include <cstddef>#include <cstdlib>#include <cstdio>#include <cassert>Go to the source code of this file.
Macros | |
| #define | COND_ASSERT(cond, f, args...) |
| Conditional assertion macro (no-op in release). | |
| #define | DEBUGINFO(p) |
| Debug information macro (no-op in release). | |
| #define | PRINT_TRACE(p) (p) |
| Print trace macro (active in release builds). | |
Debug assertion and warning utilities.
Provides debug-only assertion and warning macros that are compiled out in release builds. When DEBUG is defined, assertions print diagnostic information and abort the program. Warnings print diagnostic information without aborting.
Definition in file ahAssert.H.
| #define COND_ASSERT | ( | cond, | |
| f, | |||
| args... | |||
| ) |
Conditional assertion macro (no-op in release).
Definition at line 142 of file ahAssert.H.
| #define DEBUGINFO | ( | p | ) |
Debug information macro (no-op in release).
Definition at line 145 of file ahAssert.H.
| #define PRINT_TRACE | ( | p | ) | (p) |
Print trace macro (active in release builds).
| p | The statement to execute. |
Definition at line 150 of file ahAssert.H.