Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members  

LeakChecker.h File Reference

#include "dgconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <new>
#include <memory>

Namespaces

namespace  debug

Defines

#define calloc(n, size)   dg_calloc(n, size, __FILE__, __LINE__)
#define malloc(n)   dg_malloc(n, __FILE__, __LINE__)
#define realloc(p, n)   dg_realloc(p, n, __FILE__, __LINE__)
#define free(p)   dg_free(p, __FILE__, __LINE__)
#define dg_NEW   new(__FILE__, __LINE__)
#define new   dg_NEW
#define SETUP_LEAK_CHECKER(var)   LeakChecker var;

Functions

void * dg_calloc (size_t n, size_t size, const char *file, int line)
void * dg_malloc (size_t n, const char *file, int line)
void * dg_realloc (void *p, size_t n, const char *file, int line)
void dg_free (void *p, const char *file, int line)
void * operator new (size_t n) throw ( std ::bad_alloc )
void * operator new[] (size_t n) throw ( std ::bad_alloc )
void * operator new (size_t n, const char *file, int line) throw ( std ::bad_alloc )
void * operator new[] (size_t n, const char *file, int line) throw ( std ::bad_alloc )
void operator delete (void *p) throw ()
void operator delete[] (void *p) throw ()
void operator delete (void *p, const char *file, int line) throw ()
void operator delete[] (void *p, const char *file, int line) throw ()

Define Documentation

#define calloc n,
size       dg_calloc(n, size, __FILE__, __LINE__)
 

#define malloc      dg_malloc(n, __FILE__, __LINE__)
 

#define realloc p,
     dg_realloc(p, n, __FILE__, __LINE__)
 

#define free      dg_free(p, __FILE__, __LINE__)
 

#define dg_NEW   new(__FILE__, __LINE__)
 

#define new   dg_NEW
 

#define SETUP_LEAK_CHECKER var       LeakChecker var;
 


Function Documentation

void* dg_calloc size_t    n,
size_t    size,
const char *    file,
int    line
 

void* dg_malloc size_t    n,
const char *    file,
int    line
 

void* dg_realloc void *    p,
size_t    n,
const char *    file,
int    line
 

void dg_free void *    p,
const char *    file,
int    line
 

void* operator new size_t    n throw ( std ::bad_alloc )
 

void* operator new[] size_t    n throw ( std ::bad_alloc )
 

void* operator new size_t    n,
const char *    file,
int    line
throw ( std ::bad_alloc )
 

void* operator new[] size_t    n,
const char *    file,
int    line
throw ( std ::bad_alloc )
 

void operator delete void *    p throw ()
 

void operator delete[] void *    p throw ()
 

void operator delete void *    p,
const char *    file,
int    line
throw ()
 

void operator delete[] void *    p,
const char *    file,
int    line
throw ()
 


Generated on Tue May 14 22:56:28 2002 for Debug Utilities by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001