summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-28 04:26:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-28 04:26:48 -0400
commitb4304515ff0501da47cbcd4b47c770e2bb55a83d (patch)
tree03bfa7fb21d09cffa20ded425016ad8b0aef7e21 /amount.cc
parent863485ad8ff29399fb9eafd1cfc863c5e8aa27f6 (diff)
downloadfork-ledger-b4304515ff0501da47cbcd4b47c770e2bb55a83d.tar.gz
fork-ledger-b4304515ff0501da47cbcd4b47c770e2bb55a83d.tar.bz2
fork-ledger-b4304515ff0501da47cbcd4b47c770e2bb55a83d.zip
ledger.so (the python module) now builds based on autoconf discovery
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc6
1 files changed, 3 insertions, 3 deletions
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)