summaryrefslogtreecommitdiff
path: root/src/draft.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/draft.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/draft.cc')
-rw-r--r--src/draft.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/draft.cc b/src/draft.cc
index c5f37f42..a6f60520 100644
--- a/src/draft.cc
+++ b/src/draft.cc
@@ -276,7 +276,7 @@ xact_t * draft_t::insert(journal_t& journal)
//added->code = matching->code;
//added->note = matching->note;
-#if defined(DEBUG_ON)
+#if DEBUG_ON
DEBUG("draft.xact", "Setting payee from match: " << added->payee);
//if (added->code)
// DEBUG("draft.xact", "Setting code from match: " << *added->code);
@@ -381,14 +381,14 @@ xact_t * draft_t::insert(journal_t& journal)
account_t * acct = NULL;
if (! acct) {
acct = journal.find_account_re(post.account_mask->str());
-#if defined(DEBUG_ON)
+#if DEBUG_ON
if (acct)
DEBUG("draft.xact", "Found account as a regular expression");
#endif
}
if (! acct) {
acct = journal.find_account(post.account_mask->str());
-#if defined(DEBUG_ON)
+#if DEBUG_ON
if (acct)
DEBUG("draft.xact", "Found (or created) account by name");
#endif