diff options
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index 6a311bb8..708ee39a 100644 --- a/src/report.cc +++ b/src/report.cc @@ -305,6 +305,10 @@ value_t report_t::fn_ansify_if(call_scope_t& scope) } namespace { + value_t fn_null(call_scope_t&) { + return NULL_VALUE; + } + template <class Type = post_t, class handler_ptr = post_handler_ptr, void (report_t::*report_method)(handler_ptr) = @@ -716,6 +720,11 @@ expr_t::ptr_op_t report_t::lookup(const string& name) return MAKE_FUNCTOR(report_t::fn_market); break; + case 'n': + if (is_eq(p, "null")) + return WRAP_FUNCTOR(fn_null); + break; + case 'o': if (WANT_OPT()) { const char * q = p + OPT_PREFIX_LEN; if (option_t<report_t> * handler = lookup_option(q)) |