From b4304515ff0501da47cbcd4b47c770e2bb55a83d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 28 Aug 2004 04:26:48 -0400 Subject: ledger.so (the python module) now builds based on autoconf discovery --- amount.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index 0af00602..4d39f29a 100644 --- a/amount.cc +++ b/amount.cc @@ -36,7 +36,9 @@ class amount_t::bigint_t { } ~bigint_t() { DEBUG_PRINT("ledger.memory.dtors", "dtor amount_t::bigint_t"); +#if DEBUG_LEVEL >= BETA assert(ref == 0); +#endif mpz_clear(val); } }; @@ -1099,9 +1101,7 @@ void export_amount() .def(! self) .def(abs(self)) -#if 0 - .def(str(self)) -#endif + .def(self_ns::str(self)) .def("negate", &amount_t::negate) .def("parse", parse_1) -- cgit v1.2.3