Skip to content

MapMustInsert

Description

Aborting variant of MapInsert. See that macro for parameter semantics and success-state effects.

Success

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

Failure

Does not return - aborts via LOG_FATAL / SysAbort when the underlying MapInsert call returns false.

Usage example (Cross-references)

Usage examples (Cross-references)
        do {                                                                                                               \
            if (!MapInsert((m), (in_key), (in_value))) {                                                                   \
                LOG_FATAL("MapMustInsert failed");                                                                         \
            }                                                                                                              \
        } while (0)
Last updated on