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