89 #define heapmem_alloc(size) heapmem_alloc_debug((size), __FILE__, __LINE__) 90 #define heapmem_realloc(ptr, size) heapmem_realloc_debug((ptr), (size), __FILE__, __LINE__) 91 #define heapmem_free(ptr) heapmem_free_debug((ptr), __FILE__, __LINE__) 93 void *heapmem_alloc_debug(
size_t size,
94 const char *file,
const unsigned line);
95 void *heapmem_realloc_debug(
void *ptr,
size_t size,
96 const char *file,
const unsigned line);
97 void heapmem_free_debug(
void *ptr,
98 const char *file,
const unsigned line);
void heapmem_free(void *ptr)
Deallocate a chunk of memory.
void * heapmem_alloc(size_t size)
Allocate a chunk of memory in the heap.
void heapmem_stats(heapmem_stats_t *stats)
Obtain internal heapmem statistics regarding the allocated chunks.
void * heapmem_realloc(void *ptr, size_t size)
Reallocate a chunk of memory in the heap.