diff options
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index 553fe0f8..ce414446 100644 --- a/src/report.cc +++ b/src/report.cc @@ -272,6 +272,11 @@ value_t report_t::get_total_expr(call_scope_t& scope) return total_expr.calc(scope); } +value_t report_t::get_display_total(call_scope_t& scope) +{ + return display_total.calc(scope); +} + namespace { value_t print_balance(call_scope_t& args) { @@ -474,6 +479,11 @@ expr_t::ptr_op_t report_t::lookup(const string& name) } break; + case 'd': + if (std::strcmp(p, "display_total") == 0) + return MAKE_FUNCTOR(report_t::get_display_total); + break; + case 'o': if (std::strncmp(p, "opt_", 4) == 0) { p = p + 4; |