diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-19 02:58:58 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:53 -0400 |
commit | 7ddf6baf2c741f631dbbb4491d3cc21c648f80bf (patch) | |
tree | 1c6a01950eb46517f912301ef25fa6c80b899e57 | |
parent | 7645ca389ada18a7b74f06dee7a576db4e4285e6 (diff) | |
download | fork-ledger-7ddf6baf2c741f631dbbb4491d3cc21c648f80bf.tar.gz fork-ledger-7ddf6baf2c741f631dbbb4491d3cc21c648f80bf.tar.bz2 fork-ledger-7ddf6baf2c741f631dbbb4491d3cc21c648f80bf.zip |
Corrected debug macro.
-rw-r--r-- | src/utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index cf1cd1d0..7ad1033e 100644 --- a/src/utils.h +++ b/src/utils.h @@ -149,7 +149,6 @@ extern bool verify_enabled; #define VERIFY(x) (ledger::verify_enabled ? assert(x) : ((void)0)) #define DO_VERIFY() ledger::verify_enabled -#define IF_VERIFY() if (DO_VERIFY()) void initialize_memory_tracing(); void shutdown_memory_tracing(); @@ -237,11 +236,14 @@ inline bool operator!=(const string& __lhs, const char* __rhs) #else // ! VERIFY_ON #define VERIFY(x) +#define DO_VERIFY() true #define TRACE_CTOR(cls, args) #define TRACE_DTOR(cls) #endif // VERIFY_ON +#define IF_VERIFY() if (DO_VERIFY()) + /********************************************************************** * * Logging |