summaryrefslogtreecommitdiff
path: root/src/session.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/session.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/session.cc')
-rw-r--r--src/session.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/session.cc b/src/session.cc
index 9a77d341..b6153203 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -117,7 +117,7 @@ std::size_t session_t::read_data(const string& master_account)
else if (HANDLED(value_expr_))
journal->value_expr = HANDLER(value_expr_).str();
-#if defined(HAVE_BOOST_SERIALIZATION)
+#if HAVE_BOOST_SERIALIZATION
optional<archive_t> cache;
if (HANDLED(cache_) && master_account.empty())
cache = archive_t(HANDLED(cache_).str());
@@ -179,7 +179,7 @@ std::size_t session_t::read_data(const string& master_account)
<< "] == journal->xacts.size() [" << journal->xacts.size() << "]");
assert(xact_count == journal->xacts.size());
-#if defined(HAVE_BOOST_SERIALIZATION)
+#if HAVE_BOOST_SERIALIZATION
if (cache && cache->should_save(*journal.get()))
cache->save(*journal.get());
}
@@ -201,14 +201,14 @@ journal_t * session_t::read_journal_files()
if (HANDLED(master_account_))
master_account = HANDLER(master_account_).str();
-#if defined(DEBUG_ON)
+#if DEBUG_ON
std::size_t count =
#endif
read_data(master_account);
INFO_FINISH(journal);
-#if defined(DEBUG_ON)
+#if DEBUG_ON
INFO("Found " << count << " transactions");
#endif