From 8e89e1d3c7894ff40d3871f3a1ff72327b7de6bb Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Sun, 30 Nov 2008 16:51:59 -0500 Subject: [PATCH] added DASSERT --- src/debug.cpp | 7 +++++++ src/debug.h | 2 ++ 2 files changed, 9 insertions(+) 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 -- 2.10.2