Skip to content
DEBUG_FREED_LIT

DEBUG_FREED_LIT

Description

Compound-literal initializer for the embedded freed Vec (a Vec(DebugFreedEntry) storing the freed-history ring used to reconstruct double-free contexts). Stamps the vec magic and leaves .allocator = NULL so first-use lazily binds it to &self->meta.base, same pattern as DEBUG_LIVE_LIT. Used internally by DebugAllocatorInitWith – callers should not reach for it.

Success

Yields a struct-initializer expression suitable as the .freed = DEBUG_FREED_LIT arm of a DebugAllocator compound literal.

Failure

Macro cannot fail at expansion.

Usage example (Cross-references)

Usage examples (Cross-references)
            .config       = (_cfg),                                                                                        \
            .live         = DEBUG_LIVE_LIT,                                                                                \
            .freed        = DEBUG_FREED_LIT,                                                                               \
            .overflows    = 0,                                                                                             \
            .bytes_in_use = 0,                                                                                             \
Last updated on