VecMustInsertL
Description
Aborting (Must*) variants of every fallible insertion macro above.
Each VecMustXxx(...) is the statement-style do-while wrapper around the matching VecXxx(...) expression: it calls the underlying fallible form and triggers LOG_FATAL(...) if the call returns false. Use these at API boundaries where allocation failure is not a recoverable condition for the caller. Otherwise prefer the propagating forms.
Success
Returns to the caller.
Failure
Does not return - aborts via LOG_FATAL / SysAbort.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Insert.h:491:
do { \
if (!VecInsertL((v), (lval), (idx))) { \
LOG_FATAL("VecMustInsertL failed"); \
} \
} while (0)
Last updated on