summaryrefslogtreecommitdiff
path: root/src/exprbase.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-04 06:02:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-04 06:02:00 -0400
commitb848ace76866188701a6a704a9531c4eeb2bc71a (patch)
tree6fdb3e1cf8a8239c89c03907447a08402bef391b /src/exprbase.h
parentf16a5382ed9a9750c69595e5752f80e39cf7a4b8 (diff)
downloadfork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.tar.gz
fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.tar.bz2
fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.zip
Allow opt -NDEBUG build to complete without warnings
Diffstat (limited to 'src/exprbase.h')
-rw-r--r--src/exprbase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exprbase.h b/src/exprbase.h
index 0dbf3bff..cf81a0a7 100644
--- a/src/exprbase.h
+++ b/src/exprbase.h
@@ -155,17 +155,21 @@ public:
result_type calc(scope_t& scope)
{
if (! compiled) {
+#if defined(DEBUG_ON)
if (SHOW_DEBUG("expr.compile")) {
DEBUG("expr.compile", "Before compilation:");
dump(*_log_stream);
}
+#endif // defined(DEBUG_ON)
compile(scope);
+#if defined(DEBUG_ON)
if (SHOW_DEBUG("expr.compile")) {
DEBUG("expr.compile", "After compilation:");
dump(*_log_stream);
}
+#endif // defined(DEBUG_ON)
}
return real_calc(scope);