From 8c5b124e9961d3ee64105e1576e79f304c18b40e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 29 Oct 2003 07:47:41 +0000 Subject: changes --- ledger.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ledger.h') diff --git a/ledger.h b/ledger.h index c63ce574..de30843e 100644 --- a/ledger.h +++ b/ledger.h @@ -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 #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 result = +#endif main_ledger->commodities.insert(commodities_map_pair(sym, this)); +#ifdef DEBUG assert(result.second); +#endif } // Parsing routines -- cgit v1.2.3