Namespaces | Defines | Functions

memory/memleak.h File Reference

Provides memory leak detection. More...

#include "../utils/prologue.h"
#include "../memory/heap_debug.h"
#include "../auto_ptr/auto_ptr.h"
#include <memory>
#include "../memory/heap_debug.h"
#include "../auto_ptr/auto_ptr.h"
Include dependency graph for memory/memleak.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  my_mem_manager

Defines

#define auto_ptr   MY_AUTO_PTR__
#define MY_AUTO_PTR__   ::my_auto_ptr::auto_ptr
#define MY_DELETE(x)   ::my_mem_manager::deallocate((x),__FILE__,__LINE__)
#define MY_DELETE_A(x)   ::operator delete[]((x),__FILE__,__LINE__)
#define my_ex_malloc(x, s, sp)   ::my_ex_malloc__(__FILE__,__LINE__,(x),(s),(sp))
#define my_free(p)   MY_FREE__((p))
#define MY_FREE__(p)   ::my_free__(__FILE__,__LINE__,(p))
#define my_malloc(x)   MY_MALLOC__( (x) ? (x) : 1 )
#define MY_MALLOC__(x)   ::malloc((x))
#define MY_NEW   ::new(__FILE__,__LINE__)
#define my_realloc(p, s)   MY_REALLOC__((p),(s))
#define MY_REALLOC__(p, s)   ::my_realloc__(__FILE__,__LINE__,(p),(s))
#define my_s_malloc(x)   ::my_ex_malloc__(__FILE__,__LINE__,(x),true,false)

Functions

template<class T >
MY_FORCE_INLINE void my_mem_manager::deallocate (T *p, const char *fn, int ln)
template<class T >
MY_FORCE_INLINE void my_mem_manager::destruct (T *p)

Detailed Description

Provides memory leak detection.

Author:
VooDooMan, Kasper Peeters, and possibly HP

Definition in file memory/memleak.h.


Generated on Sat Aug 7 2010 15:24:01 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads