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) throw () |
| void * | operator new[] (size_t size) throw (std::bad_alloc) |
| void | operator delete[] (void *p) throw () |
Define Documentation
| #define SG_CALLOC |
( |
|
type, |
|
|
|
len | |
|
) |
| | (type*) sg_calloc(size_t(len), sizeof(type)) |
| #define SG_FREE |
( |
|
ptr |
) |
sg_free(ptr) |
| #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)) |
Function Documentation
| void operator delete |
( |
void * |
p |
) |
throw () |
| void operator delete[] |
( |
void * |
p |
) |
throw () |
| void* operator new |
( |
size_t |
size |
) |
throw (std::bad_alloc) |
| void* operator new[] |
( |
size_t |
size |
) |
throw (std::bad_alloc) |
| void* sg_calloc |
( |
size_t |
num, |
|
|
size_t |
size | |
|
) |
| | |
| void sg_free |
( |
void * |
ptr |
) |
|
| void* sg_malloc |
( |
size_t |
size |
) |
|
| void* sg_realloc |
( |
void * |
ptr, |
|
|
size_t |
size | |
|
) |
| | |