Skip to content
DebugAllocatorOverflows

DebugAllocatorOverflows

Description

Number of canary-corruption events caught and reported so far.

Usage example (Cross-references)

Usage examples (Cross-references)
        ok = ok && DebugAllocatorLiveBytes(dbg) == 0;
        ok = ok && DebugAllocatorDoubleFrees(dbg) == 0;
        ok = ok && DebugAllocatorOverflows(dbg) == 0;
    
        DebugAllocatorDestroy(dbg, ALLOCATOR_OF(&meta));
        AllocatorFree(adbg, buf, 16);
    
        bool ok = DebugAllocatorOverflows(dbg) == 1;
    
        DebugAllocatorDestroy(dbg, ALLOCATOR_OF(&meta));
    }
    
    size DebugAllocatorOverflows(const DebugAllocator *self) {
        if (!self)
            return 0;
Last updated on