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"
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) |
Provides memory leak detection.
Definition in file memory/memleak.h.