Simple pre-processor logging utility. More...
Go to the source code of this file.
Defines | |
| #define | LOG_LEVEL 0 |
| define LOG_LEVEL here if it is not already defined | |
| #define | LOG(x, msg) |
| #define | LOG3(x, msg1, msg2) |
Simple pre-processor logging utility.
Replaces LOG( lvl, x ) with "if(lvl <= LOG_LEVEL) std::cout << x << std::endl" when logging is active (LOG_LEVEL > 0 is defined). x is the level at which the message should be logged - if it is smaller or equal to LOG_LEVEL (which can be defined at compile-time for each file by passing option -DLOG_LEVEL=x to gcc) than the message is logged.
| #define LOG_LEVEL 0 |
define LOG_LEVEL here if it is not already defined
| #define LOG | ( | x, | |
| msg | |||
| ) |
| #define LOG3 | ( | x, | |
| msg1, | |||
| msg2 | |||
| ) |