X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fdebug.h;h=6085003458303ee2153dfc81bc4c323758cc8ee7;hb=f5380bc68a49710df6c10b089da232afb791344e;hp=1fb01312a7b8d999b45f677476ea6ae985e3f521;hpb=dca497db1c716132a88dc430a86caa5b281162dc;p=physics.git diff --git a/src/debug.h b/src/debug.h index 1fb0131..6085003 100644 --- a/src/debug.h +++ b/src/debug.h @@ -18,16 +18,23 @@ #ifndef DEBUG_H #define DEBUG_H +#include +using std::cout; +using std::cerr; +using std::endl; + void DPF(int level, const char* pstr); -// comment out when not debugging -#define DEBUGGING +namespace debug +{ + void init(); + void clean(); +} -// comment out to suppress warnings -#define WARNINGS +void DASSERT(bool fBreak); -// comment out to prevent FPS and UPS printing -//#define FPSUPS +// comment out when not debugging +#define DEBUGGING #endif // DEBUG_H