From 9039e728b2015b54dc87da52f450c27683303392 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Apr 2007 21:22:24 +0000 Subject: 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. --- debug.cc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'debug.cc') 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 -#include +#include -#include // 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 - void debug_assert(const ledger::string& reason, const ledger::string& file, unsigned long line) -- cgit v1.2.3