diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-20 15:31:49 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-20 15:31:49 -0500 |
commit | a916ed87bc18476cb8efdcdc703ada98793d09e1 (patch) | |
tree | 503ac12b50d0563e3742bb78e7192606729f5b12 /src/utils.h | |
parent | 0c1f40754aa6c1e96af3e077ca138dcf3ac1b9c5 (diff) | |
download | fork-ledger-a916ed87bc18476cb8efdcdc703ada98793d09e1.tar.gz fork-ledger-a916ed87bc18476cb8efdcdc703ada98793d09e1.tar.bz2 fork-ledger-a916ed87bc18476cb8efdcdc703ada98793d09e1.zip |
Guard against an incorrect use of assert()
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index 63b98029..5d7bf15b 100644 --- a/src/utils.h +++ b/src/utils.h @@ -133,7 +133,7 @@ namespace ledger { extern bool verify_enabled; -#define VERIFY(x) (ledger::verify_enabled ? assert(x) : ((void)0)) +#define VERIFY(x) if (ledger::verify_enabled) { assert(x); } #define DO_VERIFY() ledger::verify_enabled void initialize_memory_tracing(); |