DEBUG_ALLOCATOR_MAGIC
Description
Per-type magic for DebugAllocator.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Debug.h:514:
.effort = ALLOCATOR_EFFORT_ONCE, \
.retry_limit = 0, \
.__magic = DEBUG_ALLOCATOR_MAGIC | MAGIC_VALIDATED_BIT, \
.footprint_bytes = 0}, \
.heap = HeapAllocatorInit(), \
- In
Debug.c:176:
LOG_FATAL("DebugAllocator: NULL self");
}
if (!MAGIC_MATCHES(self->base.__magic, DEBUG_ALLOCATOR_MAGIC)) {
LOG_FATAL("type-confusion: allocator passed to debug_allocator_* is not a DebugAllocator");
}- In
Debug.c:456:
void DebugAllocatorDeinit(DebugAllocator *self) {
if (!self || !MAGIC_MATCHES(self->base.__magic, DEBUG_ALLOCATOR_MAGIC))
return;
Last updated on