91#define heapmem_alloc(size) heapmem_alloc_debug((size), __FILE__, __LINE__)
92#define heapmem_realloc(ptr, size) heapmem_realloc_debug((ptr), (size), __FILE__, __LINE__)
93#define heapmem_free(ptr) heapmem_free_debug((ptr), __FILE__, __LINE__)
95void *heapmem_alloc_debug(
size_t size,
96 const char *file,
const unsigned line);
97void *heapmem_realloc_debug(
void *ptr,
size_t size,
98 const char *file,
const unsigned line);
99void heapmem_free_debug(
void *ptr,
100 const char *file,
const unsigned line);
void * heapmem_realloc(void *ptr, size_t size)
Reallocate a chunk of memory in the heap.
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.
bool heapmem_free(void *ptr)
Deallocate a chunk of memory.