Go to the source code of this file.
Defines | |
#define | SG_MALLOC(type, len) (type*) sg_malloc(sizeof(type)*size_t(len)) |
#define | SG_MALLOC(type, len) (type*) sg_malloc(sizeof(type)*size_t(len)) |
#define | SG_CALLOC(type, len) (type*) sg_calloc(size_t(len), sizeof(type)) |
#define | SG_REALLOC(type, ptr, len) (type*) sg_realloc(ptr, sizeof(type)*size_t(len)) |
#define | SG_FREE(ptr) sg_free(ptr) |
Functions | |
void * | sg_malloc (size_t size) |
void | sg_free (void *ptr) |
void * | sg_realloc (void *ptr, size_t size) |
void * | sg_calloc (size_t num, size_t size) |
void * | operator new (size_t size) throw (std::bad_alloc) |
void | operator delete (void *p) |
void * | operator new[] (size_t size) |
void | operator delete[] (void *p) |
#define SG_CALLOC | ( | type, | ||
len | ||||
) | (type*) sg_calloc(size_t(len), sizeof(type)) |
#define SG_MALLOC | ( | type, | ||
len | ||||
) | (type*) sg_malloc(sizeof(type)*size_t(len)) |
#define SG_MALLOC | ( | type, | ||
len | ||||
) | (type*) sg_malloc(sizeof(type)*size_t(len)) |
#define SG_REALLOC | ( | type, | ||
ptr, | ||||
len | ||||
) | (type*) sg_realloc(ptr, sizeof(type)*size_t(len)) |
void operator delete | ( | void * | p | ) |
Definition at line 98 of file memory.cpp.
void operator delete[] | ( | void * | p | ) |
Definition at line 130 of file memory.cpp.
void* operator new | ( | size_t | size | ) | throw (std::bad_alloc) |
Definition at line 76 of file memory.cpp.
void* operator new[] | ( | size_t | size | ) |
Definition at line 107 of file memory.cpp.
void* sg_calloc | ( | size_t | num, | |
size_t | size | |||
) |
Definition at line 166 of file memory.cpp.
void sg_free | ( | void * | ptr | ) |
Definition at line 195 of file memory.cpp.
void* sg_malloc | ( | size_t | size | ) |
Definition at line 139 of file memory.cpp.
void* sg_realloc | ( | void * | ptr, | |
size_t | size | |||
) |
Definition at line 204 of file memory.cpp.