Skip to content
MapMustCompact

MapMustCompact

Description

Aborting variant of MapCompact. Calls LOG_FATAL on allocation failure.

Success

Returns to the caller.

Failure

Does not return - aborts via LOG_FATAL / Abort.

Usage example (Cross-references)

Usage examples (Cross-references)
        do {                                                                                                               \
            if (!MapCompact((m))) {                                                                                        \
                LOG_FATAL("MapMustCompact failed");                                                                        \
            }                                                                                                              \
        } while (0)
        bool result = (MapTombstones(&map) == 1);
    
        MapMustCompact(&map);
    
        // Returned to caller; tombstones cleared, survivors intact, length exact.
Last updated on