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