X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fdebug.h;h=2862cc2c813879741b8d05f24e025d5997c914d5;hb=8e89e1d3c7894ff40d3871f3a1ff72327b7de6bb;hp=1fb01312a7b8d999b45f677476ea6ae985e3f521;hpb=ca2d526eb092a673f37a906020f1f32d91a608d3;p=physics.git diff --git a/src/debug.h b/src/debug.h index 1fb0131..2862cc2 100644 --- a/src/debug.h +++ b/src/debug.h @@ -18,8 +18,21 @@ #ifndef DEBUG_H #define DEBUG_H +#include +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 @@ -27,7 +40,7 @@ void DPF(int level, const char* pstr); #define WARNINGS // comment out to prevent FPS and UPS printing -//#define FPSUPS +#define FPSUPS #endif // DEBUG_H