diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-29 07:47:41 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-29 07:47:41 +0000 |
commit | 8c5b124e9961d3ee64105e1576e79f304c18b40e (patch) | |
tree | fb7055327dedd10466f2fcfc4d8d1fdebcb6f7d2 /ledger.h | |
parent | 0d29133f8abee4cd24ca2eecce7f82be7534d5a9 (diff) | |
download | fork-ledger-8c5b124e9961d3ee64105e1576e79f304c18b40e.tar.gz fork-ledger-8c5b124e9961d3ee64105e1576e79f304c18b40e.tar.bz2 fork-ledger-8c5b124e9961d3ee64105e1576e79f304c18b40e.zip |
changes
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,5 @@ #ifndef _LEDGER_H -#define _LEDGER_H "$Revision: 1.27 $" +#define _LEDGER_H "$Revision: 1.28 $" ////////////////////////////////////////////////////////////////////// // @@ -20,6 +20,9 @@ #ifdef DEBUG #include <cassert> #else +#ifdef assert +#undef assert +#endif #define assert(x) #endif @@ -297,9 +300,13 @@ inline commodity::commodity(const std::string& sym, bool pre, bool sep, bool thou, bool euro, int prec) : symbol(sym), price(NULL), prefix(pre), separate(sep), thousands(thou), european(euro), precision(prec) { +#ifdef DEBUG std::pair<commodities_map_iterator, bool> result = +#endif main_ledger->commodities.insert(commodities_map_pair(sym, this)); +#ifdef DEBUG assert(result.second); +#endif } // Parsing routines |