|
Defines |
| #define | HASH(PTR) (((PTR) >> 2) & (debug_ALLOCATION_TABLE-1)) |
| | Easy hash of a pointer: remove 2 lower bits (==0) modulo size of allocation table.
|
Functions |
| int32_t * | debug_malloc (size_t intSize, void *debugAllocations) |
| | Debug allocator function based on malloc.
|
| void | debug_free (void *ptr, size_t intSize, void *debugAllocations) |
| | Debug free function, to free memory allocated by debug_malloc.
|
| void | debug_destroyAllocator (allocator_t *debugAllocator) |
| | Destroy a debug allocator and check it for leaks.
|