#include <iostream>
Go to the source code of this file.
Defines | |
#define | DBGA(STMT) std::cerr<<STMT<<std::endl; |
#define | DBGAF(STREAM, STMT) {STREAM<<STMT<<std::endl; DBGA(STMT)} |
#define | DBGP(STMT) |
#define | DBGPF(STREAM, STMT) {STREAM<<STMT<<std::endl; DBGP(STMT)} |
#define | DBGST(STMT) |
#define | PRINT_STAT(STREAM_PTR, STMT) if (STREAM_PTR) *STREAM_PTR << STMT << " "; |
Defines some convenience macros for output and debug, which behave differently depending on whether GRASPITDBG is defined:
DBGA(msg) always prints the message to std::err
DBGP(msg) only prints the message if GRASPITDBG is defined, and swallows it otherwise.
To use this, include "debug.h" in your source file, and then define GRASPITDBG just before the include if you want the debug output.
Definition in file debug.h.
#define DBGAF | ( | STREAM, | |||
STMT | ) | {STREAM<<STMT<<std::endl; DBGA(STMT)} |
#define DBGPF | ( | STREAM, | |||
STMT | ) | {STREAM<<STMT<<std::endl; DBGP(STMT)} |