Skip to content
ListMustInsertL

ListMustInsertL

Description

Aborting (Must*) variants of every fallible insertion macro above.

Each ListMustXxx(...) is the statement-style do-while wrapper around the matching ListXxx(...) 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)
        do {                                                                                                               \
            if (!ListInsertL((l), (lval), (idx))) {                                                                        \
                LOG_FATAL("ListMustInsertL failed");                                                                       \
            }                                                                                                              \
        } while (0)
Last updated on