MapMustInsertL
Description
Aborting (Must*) variants of the fallible Map insertion macros above.
Each MapMustXxx(...) is the statement-style do-while wrapper around the matching MapXxx(...) 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 recoverable 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:444:
do { \
if (!MapInsertL((m), (in_key), (in_value))) { \
LOG_FATAL("MapMustInsertL failed"); \
} \
} while (0)
Last updated on