diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-19 19:32:40 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-20 04:48:05 -0500 |
commit | 4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 (patch) | |
tree | 488d6531d688c68713baa5c1d70fb37be198b861 /src/format.cc | |
parent | 303976e563608d8a1f4eb09ac5c9402ae5ce74fd (diff) | |
download | fork-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/format.cc')
-rw-r--r-- | src/format.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/format.cc b/src/format.cc index 18c7696d..d29c87b3 100644 --- a/src/format.cc +++ b/src/format.cc @@ -221,7 +221,7 @@ format_t::element_t * format_t::parse_elements(const string& fmt, static_cast<int>(current->max_width) : -1); else if (keyword == "left") expr << (current->has_flags(ELEMENT_ALIGN_LEFT) ? "false" : "true"); -#if defined(DEBUG_ON) +#if DEBUG_ON else assert("Unrecognized format substitution keyword" == NULL); #endif @@ -538,7 +538,7 @@ string format_t::truncate(const unistring& ustr, // distributed, with the latter parts being longer than the // former, but with none shorter than account_abbrev_length. std::list<std::size_t> lens; -#if defined(DEBUG_ON) +#if DEBUG_ON int index = 0; #endif for (std::list<string>::iterator i = parts.begin(); @@ -595,7 +595,7 @@ string format_t::truncate(const unistring& ustr, std::size_t overflow_at_start = overflow; DEBUG("format.abbrev", "Overflow starting at " << overflow << " chars"); -#if defined(DEBUG_ON) +#if DEBUG_ON index = 0; #endif std::size_t counter = lens.size(); |