diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:26:06 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:42 -0500 |
commit | 34ee358f5e16d4018adf3db5dac31d2d9c16b9f5 (patch) | |
tree | 5f2db02f896b2e50edb4fa1b143960286f6c1991 /src/global.h | |
parent | 817f1ae1619df06f06f79f772f075041bb70f751 (diff) | |
download | fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.tar.gz fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.tar.bz2 fork-ledger-34ee358f5e16d4018adf3db5dac31d2d9c16b9f5.zip |
Moved journal reading code into journal_t
Diffstat (limited to 'src/global.h')
-rw-r--r-- | src/global.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/global.h b/src/global.h index 34577656..31a0a480 100644 --- a/src/global.h +++ b/src/global.h @@ -75,10 +75,14 @@ public: void push_report() { report_stack.push_front(new report_t(report_stack.front())); + scope_t::default_scope = &report(); } void pop_report() { - if (! report_stack.empty()) - report_stack.pop_front(); + assert(! report_stack.empty()); + report_stack.pop_front(); + // There should always be the "default report" waiting on the stack. + assert(! report_stack.empty()); + scope_t::default_scope = &report(); } void report_error(const std::exception& err); |