From 7bb83173dae617b8e754fff8e52390ff9664873b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 Mar 2012 08:34:15 -0600 Subject: Added some missing DEBUG #if's --- src/filters.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/filters.cc') diff --git a/src/filters.cc b/src/filters.cc index 34df2056..3a975920 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -891,7 +891,9 @@ void subtotal_posts::operator()(post_t& post) std::pair result = #endif values.insert(values_pair(acct->fullname(), acct_value_t(acct, temp))); +#if defined(DEBUG_ON) assert(result.second); +#endif } else { post.add_to_value((*i).second.value, amount_expr); } -- cgit v1.2.3