3rdparty/mshmet/src/sourceslib/memory.h
raw| 1 | #ifdef __cplusplus |
| 2 | extern "C" { |
| 3 | #endif |
| 4 | |
| 5 | #include <stdlib.h> |
| 6 | #include <assert.h> |
| 7 | |
| 8 | /* prototype (re)definitions */ |
| 9 | void *M_malloc(size_t size,char *call); |
| 10 | void *M_calloc(size_t nelem,size_t elsize,char *call); |
| 11 | void *M_realloc(void *ptr, size_t size,char *call); |
| 12 | void M_free(void *ptr); |
| 13 | |
| 14 | /* ptototypes : tools */ |
| 15 | int M_memLeak(); |
| 16 | void M_memDump(); |
| 17 | size_t M_memSize(); |
| 18 | |
| 19 | |
| 20 | #ifdef __cplusplus |
| 21 | } |
| 22 | #endif |