diff options
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/expr.cc b/src/expr.cc index 7e63e401..259440ac 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -118,8 +118,19 @@ void expr_t::compile(scope_t& scope) value_t expr_t::calc(scope_t& scope) { if (ptr.get()) { - if (! compiled) + if (! compiled) { + if (SHOW_DEBUG("expr.calc")) { + DEBUG("expr.calc", "Before compilation:"); + dump(*_log_stream); + } + compile(scope); + + if (SHOW_DEBUG("expr.calc")) { + DEBUG("expr.calc", "After compilation:"); + dump(*_log_stream); + } + } return ptr->calc(scope); } return NULL_VALUE; |