MapMustSetFirstL
Description
Aborting variant of MapSetFirstL. See that macro for parameter semantics and success-state effects.
Success
Returns to the caller. The underlying MapSetFirstL call succeeded; see MapSetFirstL for the post-state.
Failure
Does not return - aborts via LOG_FATAL / Abort when the underlying MapSetFirstL call returns false.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Insert.h:523:
do { \
if (!MapSetFirstL((m), (in_key), (in_value))) { \
LOG_FATAL("MapMustSetFirstL failed"); \
} \
} while (0)- In
Map.Insert.c:674:
int sf = 333;
MapMustSetFirstL(&map, 3, sf); // value zeroed on success
result = result && (sf == 0);
result = result && MapGetFirstPtr(&map, 3) && (*MapGetFirstPtr(&map, 3) == 333);
Last updated on