From: Patrik Gornicz Date: Sun, 30 Nov 2008 21:51:59 +0000 (-0500) Subject: added DASSERT X-Git-Tag: physics-premerge~85 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=8e89e1d3c7894ff40d3871f3a1ff72327b7de6bb;p=libbear.git added DASSERT --- diff --git a/src/debug.cpp b/src/debug.cpp index 5c8baeb..4e659d2 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -22,6 +22,8 @@ using std::cerr; using std::cout; using std::endl; +#include + #include "locks/Mutex.h" #include "locks/Autolock.h" @@ -46,4 +48,9 @@ void debug::clean() muDPF.clean(); } +void DASSERT(bool fBreak) +{ + assert(fBreak); +} + /// ***** Private Methods ***** diff --git a/src/debug.h b/src/debug.h index c9c5e7a..2862cc2 100644 --- a/src/debug.h +++ b/src/debug.h @@ -31,6 +31,8 @@ namespace debug void clean(); } +void DASSERT(bool fBreak); + // comment out when not debugging #define DEBUGGING