From 6c01e4e0905007624fa6c68b598138cb0c919e76 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 6 Jun 2010 05:04:22 -0400 Subject: Simplified some debug code --- src/xact.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/xact.cc') diff --git a/src/xact.cc b/src/xact.cc index 6c10ac04..495e6410 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -685,16 +685,15 @@ void auto_xact_t::extend_xact(xact_base_t& xact) else amt = post_amount; +#if defined(DEBUG_ON) IF_DEBUG("xact.extend") { DEBUG("xact.extend", "Initial post on line " << initial_post->pos->beg_line << ": " << "amount " << initial_post->amount << " (precision " << initial_post->amount.precision() << ")"); -#if defined(DEBUG_ON) if (initial_post->amount.keep_precision()) DEBUG("xact.extend", " precision is kept"); -#endif DEBUG("xact.extend", "Posting on line " << post->pos->beg_line << ": " @@ -702,13 +701,12 @@ void auto_xact_t::extend_xact(xact_base_t& xact) << " (precision " << post_amount.precision() << " != " << amt.precision() << ")"); -#if defined(DEBUG_ON) if (post_amount.keep_precision()) DEBUG("xact.extend", " precision is kept"); if (amt.keep_precision()) DEBUG("xact.extend", " amt precision is kept"); -#endif } +#endif // defined(DEBUG_ON) account_t * account = post->account; string fullname = account->fullname(); -- cgit v1.2.3