BitVecMustResize
Description
Aborting variant of BitVecResize. Calls LOG_FATAL on allocation failure.
Parameters
| Name | Direction | Description |
|---|---|---|
bv |
in,out | Bitvector to resize. |
n |
in | New length in bits. |
Success
Returns to the caller.
Failure
Does not return - aborts via LOG_FATAL / SysAbort.
Usage example (Cross-references)
Usage examples (Cross-references)
BitVec bv = BitVecInit();
BitVecMustResize(&bv, SIZE_MAX);
// If we reach here, validation didn't work as expected
- In
Init.h:50:
do { \
if (!BitVecResize((bv), (n))) { \
LOG_FATAL("BitVecMustResize failed"); \
} \
} while (0)
Last updated on