#include "base/c_allocator.h"#include "base/intutils.h"
Go to the source code of this file.
Typedefs | |
| typedef debug_allocation_s | debug_allocation_t |
| Type to keep track of allocations. | |
Enumerations | |
| enum | { debug_ALLOCATION_TABLE = 1 << 20 } |
| Size of the allocation table. More... | |
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. | |
| static void | debug_initAllocator (allocator_t *alloc) |
| Initialize a debug_allocator_t. | |
| void | debug_destroyAllocator (allocator_t *debugAllocator) |
| Destroy a debug allocator and check it for leaks. | |
|
|
Type to keep track of allocations.
|
|
|
Size of the allocation table. This MUST be a power of 2. |
|
|
Destroy a debug allocator and check it for leaks.
|
|
||||||||||||||||
|
Debug free function, to free memory allocated by debug_malloc.
|
|
|
Initialize a debug_allocator_t.
|
|
||||||||||||
|
Debug allocator function based on malloc.
|
1.4.2