Skip to content
BitVecMustResize

BitVecMustResize

Description

Aborting variant of BitVecResize. See that function for parameter semantics and success-state effects.

Success

Returns to the caller. The underlying BitVecResize call succeeded; see BitVecResize for the post-state.

Failure

Does not return - aborts via LOG_FATAL / Abort when the underlying BitVecResize call returns false.

Usage example (Cross-references)

Usage examples (Cross-references)
        do {                                                                                                               \
            if (!BitVecResize((bv), (n))) {                                                                                \
                LOG_FATAL("BitVecMustResize failed");                                                                      \
            }                                                                                                              \
        } while (0)
        BitVec bv = BitVecInit(ALLOCATOR_OF(&alloc));
    
        BitVecMustResize(&bv, SIZE_MAX);
    
        // If we reach here, validation didn't work as expected
Last updated on