From 7901598f1d1e419e19c860e81749805371298030 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 27 Feb 2006 23:52:31 +0000 Subject: Checked in all major updates. --- debug.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debug.h') diff --git a/debug.h b/debug.h index 97a5a667..2efbbe78 100644 --- a/debug.h +++ b/debug.h @@ -55,6 +55,9 @@ bool _debug_active(const char * const cls); #define DEBUG(cls) (_debug_active(cls)) #define DEBUG_() DEBUG(_debug_cls) +#define DEBUG_IF(cls) if (_debug_active(cls)) +#define DEBUG_IF_() if (_debug_active(_debug_cls)) + #define DEBUG_PRINT(cls, x) \ if (_debug_stream && _debug_active(cls)) { \ *_debug_stream << x << std::endl; \ @@ -91,6 +94,8 @@ void operator delete[](void*, const std::nothrow_t&) throw(); #define DEBUG_CLASS(cls) #define DEBUG(cls) 0 #define DEBUG_() 0 +#define DEBUG_IF(cls) +#define DEBUG_IF_() #define DEBUG_PRINT(cls, x) #define DEBUG_PRINT_(x) #define DEBUG_PRINT_TIME(cls, x) -- cgit v1.2.3