#include <stdlib.h>
#include <memory>
Go to the source code of this file.
Classes | |
class | MercuryMemoryThrough |
[internal] Dummy class that gets created for mallocing More... | |
class | MercuryMemoryThroughMaker |
[internal] Singleton used to create the dummy memory More... | |
Defines | |
#define | _INC_MALLOC |
#define | _XDEBUG_ |
#define | _NEW_CRT new |
#define | _DELETE_CRT(_P) delete (_P) |
#define | _DELETE_CRT_VEC(_P) delete[] (_P) |
#define | _STRING_CRT string |
#define | new MTHRM.Make(__FILE__,__LINE__)<<new |
#define | malloc(x) MercuryMalloc( x, __FILE__, __LINE__ ) |
#define | realloc(x, y) MercuryRealloc( x, y, __FILE__, __LINE__ ) |
#define | calloc(x, y) MercuryCalloc( x, y, __FILE__, __LINE__ ) |
#define | free(x) MercuryFree( x ) |
Functions | |
void * | MercuryMalloc (size_t x, const char *file, const int) |
void * | MercuryCalloc (size_t x, size_t y, const char *file, const int) |
void * | MercuryRealloc (void *ptr, size_t x, const char *file, const int) |
void | MercuryAMalloc (void *ptr, const char *file, const int) |
void | MercuryFree (void *ptr) |
void | MercuryAFree (void *ptr) |
void | operator delete (void *memblock) |
void | operator delete[] (void *memblock) |
void | ResetAllLeakInfo () |
void | PrintAllLeakInfo () |
void | SetPrintOnEnd (bool POD) |
Variables | |
MercuryMemoryThrough | OVERALLFREE |
static class MercuryMemoryThroughMaker | MTHRM |
[internal] Singleton used to create the dummy memory |
#define _DELETE_CRT | ( | _P | ) | delete (_P) |
Definition at line 19 of file MercuryMemory.h.
#define _DELETE_CRT_VEC | ( | _P | ) | delete[] (_P) |
Definition at line 20 of file MercuryMemory.h.
#define _INC_MALLOC |
Definition at line 13 of file MercuryMemory.h.
#define _NEW_CRT new |
Definition at line 18 of file MercuryMemory.h.
#define _STRING_CRT string |
Definition at line 21 of file MercuryMemory.h.
#define _XDEBUG_ |
Definition at line 16 of file MercuryMemory.h.
#define calloc | ( | x, | |||
y | ) | MercuryCalloc( x, y, __FILE__, __LINE__ ) |
Definition at line 91 of file MercuryMemory.h.
#define free | ( | x | ) | MercuryFree( x ) |
Definition at line 92 of file MercuryMemory.h.
#define malloc | ( | x | ) | MercuryMalloc( x, __FILE__, __LINE__ ) |
Definition at line 89 of file MercuryMemory.h.
#define new MTHRM.Make(__FILE__,__LINE__)<<new |
Definition at line 72 of file MercuryMemory.h.
#define realloc | ( | x, | |||
y | ) | MercuryRealloc( x, y, __FILE__, __LINE__ ) |
Definition at line 90 of file MercuryMemory.h.
void MercuryAFree | ( | void * | ptr | ) |
void MercuryAMalloc | ( | void * | ptr, | |
const char * | file, | |||
const | int | |||
) |
void* MercuryCalloc | ( | size_t | x, | |
size_t | y, | |||
const char * | file, | |||
const | int | |||
) |
Definition at line 126 of file MercuryMemory.cpp.
void MercuryFree | ( | void * | ptr | ) |
Definition at line 146 of file MercuryMemory.cpp.
void* MercuryMalloc | ( | size_t | x, | |
const char * | file, | |||
const | int | |||
) |
Definition at line 119 of file MercuryMemory.cpp.
void* MercuryRealloc | ( | void * | ptr, | |
size_t | x, | |||
const char * | file, | |||
const | int | |||
) |
Definition at line 133 of file MercuryMemory.cpp.
void operator delete | ( | void * | memblock | ) | [inline] |
Definition at line 75 of file MercuryMemory.h.
void operator delete[] | ( | void * | memblock | ) | [inline] |
Definition at line 82 of file MercuryMemory.h.
void PrintAllLeakInfo | ( | ) |
Definition at line 98 of file MercuryMemory.cpp.
void ResetAllLeakInfo | ( | ) |
Definition at line 76 of file MercuryMemory.cpp.
void SetPrintOnEnd | ( | bool | POD | ) |
Definition at line 114 of file MercuryMemory.cpp.
class MercuryMemoryThroughMaker MTHRM [static] |
[internal] Singleton used to create the dummy memory