summaryrefslogtreecommitdiff
path: root/debug.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-23 21:22:24 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:31 -0400
commit9039e728b2015b54dc87da52f450c27683303392 (patch)
treeac914e05db5dc03f6971cd8c165ee3791a614d18 /debug.cc
parent340dacf118f2f457ffc962cb46e8b3ef59017376 (diff)
downloadledger-9039e728b2015b54dc87da52f450c27683303392.tar.gz
ledger-9039e728b2015b54dc87da52f450c27683303392.tar.bz2
ledger-9039e728b2015b54dc87da52f450c27683303392.zip
All system headers (except Boost) now included through system.hh;
also, added support for pre-compiled headers since I'm now using a centralized resource for system headers.
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)