summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-23 04:42:28 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:30 -0400
commitbe9f18ccfe81acdd2f34b27352f2843235fab69b (patch)
tree89bb8aea8ac4d367b1c054eeea5d3fd9f7bb197c /debug.h
parentece13a8cf10e9afb576139411f450d8b37ec8e65 (diff)
downloadfork-ledger-be9f18ccfe81acdd2f34b27352f2843235fab69b.tar.gz
fork-ledger-be9f18ccfe81acdd2f34b27352f2843235fab69b.tar.bz2
fork-ledger-be9f18ccfe81acdd2f34b27352f2843235fab69b.zip
Reduced memory consumption of register report.
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.h b/debug.h
index 0de0a7ea..e0c2dc6e 100644
--- a/debug.h
+++ b/debug.h
@@ -70,6 +70,7 @@ void debug_assert(const ledger::string& reason,
#include <new>
#include <iostream>
#include <cstdlib>
+#include <cassert>
#include <boost/regex.hpp>
@@ -108,6 +109,9 @@ bool _debug_active(const char * const cls);
#define VALIDATE(x)
#endif
+extern int new_calls;
+extern int new_size;
+
#if 0
void * operator new(std::size_t) throw (std::bad_alloc);
void * operator new[](std::size_t) throw (std::bad_alloc);