From 4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2012 19:32:40 -0500 Subject: Converted the Ledger build system to use CMake --- src/xact.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/xact.cc') diff --git a/src/xact.cc b/src/xact.cc index 0e7e7e00..b5cb2a38 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -65,7 +65,7 @@ xact_base_t::~xact_base_t() void xact_base_t::add_post(post_t * post) { -#if !defined(NO_ASSERTS) +#if !NO_ASSERTS // You can add temporary postings to transactions, but not real postings to // temporary transactions. if (! post->has_flags(ITEM_TEMP)) @@ -197,7 +197,7 @@ bool xact_base_t::finalize() } VERIFY(balance.valid()); -#if defined(DEBUG_ON) +#if DEBUG_ON DEBUG("xact.finalize", "initial balance = " << balance); DEBUG("xact.finalize", "balance is " << balance.label()); if (balance.is_balance()) @@ -488,7 +488,7 @@ bool xact_base_t::verify() xact_t::xact_t(const xact_t& e) : xact_base_t(e), code(e.code), payee(e.payee) -#ifdef DOCUMENT_MODEL +#if DOCUMENT_MODEL , data(NULL) #endif { @@ -739,7 +739,7 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) else amt = post_amount; -#if defined(DEBUG_ON) +#if DEBUG_ON IF_DEBUG("xact.extend") { DEBUG("xact.extend", "Initial post on line " << initial_post->pos->beg_line << ": " @@ -760,7 +760,7 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) if (amt.keep_precision()) DEBUG("xact.extend", " amt precision is kept"); } -#endif // defined(DEBUG_ON) +#endif // DEBUG_ON account_t * account = post->account; string fullname = account->fullname(); -- cgit v1.2.3