summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-19 19:32:40 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-20 04:48:05 -0500
commit4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 (patch)
tree488d6531d688c68713baa5c1d70fb37be198b861 /src/xact.cc
parent303976e563608d8a1f4eb09ac5c9402ae5ce74fd (diff)
downloadfork-ledger-4681e58d7f3cda2a2ac6d05b6ec1a106f568e029.tar.gz
fork-ledger-4681e58d7f3cda2a2ac6d05b6ec1a106f568e029.tar.bz2
fork-ledger-4681e58d7f3cda2a2ac6d05b6ec1a106f568e029.zip
Converted the Ledger build system to use CMake
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc10
1 files changed, 5 insertions, 5 deletions
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();