|
logger
|
Debugging macros. More...
Go to the source code of this file.
Macros | |
| #define | DEBUG_EXPR(expression) logger::debug("DEBUG_EXPR") << #expression << " (" << __FILE__ << ":" << __LINE__ << ")";expression; |
| Logs an expression, alongside the source file and line, and executes it afterwards. Use this for tracing execution progress. More... | |
| #define | DEBUG_VAL(value) logger::debug("DEBUG_VAL") << #value << " = " << (value); |
| Logs the name and value of a given variable or expression. Use this debugging variable values. More... | |
Debugging macros.
This header contains helper macros for easier debugging.
| #define DEBUG_EXPR | ( | expression | ) | logger::debug("DEBUG_EXPR") << #expression << " (" << __FILE__ << ":" << __LINE__ << ")";expression; |
Logs an expression, alongside the source file and line, and executes it afterwards. Use this for tracing execution progress.
| expression | The expression to be logged. |
| #define DEBUG_VAL | ( | value | ) | logger::debug("DEBUG_VAL") << #value << " = " << (value); |
Logs the name and value of a given variable or expression. Use this debugging variable values.
| value | A variable or simple expression. |
1.8.14