diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-27 23:52:31 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:27 -0400 |
commit | 7901598f1d1e419e19c860e81749805371298030 (patch) | |
tree | f3b4b42ad4217cd5a59eafb8cb8ffacea83b60ca /debug.h | |
parent | 4507573d4fbc4ece6a4bb832b2e1fffae0885db8 (diff) | |
download | fork-ledger-7901598f1d1e419e19c860e81749805371298030.tar.gz fork-ledger-7901598f1d1e419e19c860e81749805371298030.tar.bz2 fork-ledger-7901598f1d1e419e19c860e81749805371298030.zip |
Checked in all major updates.
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |