summaryrefslogtreecommitdiff
path: root/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'debug.cc')
-rw-r--r--debug.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/debug.cc b/debug.cc
index de408273..680e426c 100644
--- a/debug.cc
+++ b/debug.cc
@@ -1,15 +1,11 @@
-#include "debug.h"
-#include "error.h"
+#include "utils.h"
-#ifdef DEBUG_ENABLED
-
-#include <map>
-#include <fstream>
+#include <boost/regex.hpp>
-#include <unistd.h> // for the `write' method
+#ifdef DEBUG_ENABLED
int new_calls = 0;
-long long new_size = 0;
+unsigned long new_size = 0;
void * operator new(std::size_t size) throw (std::bad_alloc) {
void * ptr = std::malloc(size);
@@ -89,8 +85,6 @@ static struct init_streams {
#if DEBUG_LEVEL >= BETA
-#include <string>
-
void debug_assert(const ledger::string& reason,
const ledger::string& file,
unsigned long line)