DEBUG_ALLOCATOR_MAGIC
Description
Per-type magic for DebugAllocator.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Debug.c:93:
static DebugAllocator *debug_validate_self(const Allocator *self) {
if (!self || self->__magic != DEBUG_ALLOCATOR_MAGIC) {
LOG_FATAL("type-confusion: allocator passed to debug_allocator_* is not a DebugAllocator");
}- In
Debug.c:282:
void DebugAllocatorDeinit(DebugAllocator *self) {
if (!self || self->base.__magic != DEBUG_ALLOCATOR_MAGIC)
return;- In
Debug.h:201:
.effort = ALLOCATOR_EFFORT_ONCE, \
.retry_limit = 0, \
.__magic = DEBUG_ALLOCATOR_MAGIC}, \
.heap = HeapAllocatorInit(), \
.meta = HeapAllocatorInit(), \
Last updated on