diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-05 16:15:09 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-05 16:15:09 -0400 |
commit | 290cac7b84b60305e185c140645c9bac2ca9fb0e (patch) | |
tree | c389da2eed81612ffb3868f61c31fa2534855fe1 /src/textual.cc | |
parent | f8bfbf8c250fa24bc9e26b9bf1eb64815a5a29ee (diff) | |
parent | 1417b40fdf0a92a85ab01f233c0ae076079901a2 (diff) | |
download | fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.gz fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.bz2 fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.zip |
Merge branch 'next'
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc index 9a49edd4..85b1a14b 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -695,8 +695,10 @@ void instance_t::master_account_directive(char * line) { if (account_t * acct = context.top_account()->find_account(line)) context.state_stack.push_front(acct); +#if !defined(NO_ASSERTS) else assert(! "Failed to create account"); +#endif } void instance_t::end_directive(char * kind) @@ -763,8 +765,12 @@ void instance_t::payee_mapping_directive(char * line) (payee_mapping_t(mask_t(regex), payee)); while (peek_whitespace_line()) { +#if defined(NO_ASSERTS) + read_line(line); +#else std::streamsize len = read_line(line); assert(len > 0); +#endif regex = skip_ws(line); if (! *regex) @@ -786,8 +792,12 @@ void instance_t::account_mapping_directive(char * line) context.top_account()->find_account(account_name))); while (peek_whitespace_line()) { +#if defined(NO_ASSERTS) + read_line(line); +#else std::streamsize len = read_line(line); assert(len > 0); +#endif payee_regex = skip_ws(line); if (! *payee_regex) |