From 15bf3ed39ed24bc55abc624757a1a943ebabb085 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 21:31:55 -0400 Subject: account(NAME) function can lookup account objects For example, just the word "account" returns the name of the current posting's account, but account("Expenses:Food") returns the actual account object, so that it's total may be accessed. --- src/session.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/session.h') diff --git a/src/session.h b/src/session.h index 4968f1b8..5130e3fb 100644 --- a/src/session.h +++ b/src/session.h @@ -75,6 +75,8 @@ public: void read_journal_files(); void close_journal_files(); + value_t fn_account(call_scope_t& scope); + void report_options(std::ostream& out) { HANDLER(cache_).report(out); -- cgit v1.2.3