Skip to content
VecMustPushBackL

VecMustPushBackL

Description

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

Success

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

Failure

Does not return - aborts via LOG_FATAL / Abort when the underlying VecPushBackL call returns false.

Usage example (Cross-references)

Usage examples (Cross-references)
        do {                                                                                                               \
            if (!VecPushBackL((v), (val))) {                                                                               \
                LOG_FATAL("VecMustPushBackL failed");                                                                      \
            }                                                                                                              \
        } while (0)
    /// TAGS: Str, PushBack, Char, Must, Abort
    ///
    #define StrMustPushBackL(str, lval) VecMustPushBackL((str), (lval))
    #define StrMustPushBackR(str, rval) VecMustPushBackR((str), (rval))
    #define StrMustPushBack(str, val)   StrMustPushBackL((str), (val))
Last updated on