summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-20 15:31:49 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-20 15:31:49 -0500
commita916ed87bc18476cb8efdcdc703ada98793d09e1 (patch)
tree503ac12b50d0563e3742bb78e7192606729f5b12 /src/utils.h
parent0c1f40754aa6c1e96af3e077ca138dcf3ac1b9c5 (diff)
downloadfork-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.h2
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();