From 011f35b730817034168369be1a7bd62b31146b64 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Feb 2009 04:27:28 -0400 Subject: Implemented expr_context. --- src/expr.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/expr.cc') diff --git a/src/expr.cc b/src/expr.cc index ee06187a..69319105 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -190,4 +190,9 @@ std::ostream& operator<<(std::ostream& out, const expr_t& expr) { return out; } +string expr_context(const expr_t& expr) +{ + return expr ? op_context(expr.ptr) : ""; +} + } // namespace ledger -- cgit v1.2.3