Skip to content
VecMustPushBackArrR

VecMustPushBackArrR

Description

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

Success

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

Failure

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

Usage example (Cross-references)

Usage examples (Cross-references)
        do {                                                                                                               \
            if (!VecPushBackArrR((v), (arr), (count))) {                                                                   \
                LOG_FATAL("VecMustPushBackArrR failed");                                                                   \
            }                                                                                                              \
        } while (0)
    #define StrMustPushBackMany(...) OVERLOAD(StrMustPushBackMany, __VA_ARGS__)
    #define StrMustPushBackMany_2(str, zstr)                                                                           \
        _Generic((zstr), Zstr: VecMustPushBackArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))), char *: VecMustPushBackArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))))
    #define StrMustPushBackMany_3(str, cstr, cstr_len)                                                                 \
        _Generic((cstr), Zstr: VecMustPushBackArrR((str), (Zstr)(cstr), (cstr_len)), char *: VecMustPushBackArrR((str), (Zstr)(cstr), (cstr_len)))
        _Generic((zstr), Zstr: VecMustPushBackArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))), char *: VecMustPushBackArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))))
    #define StrMustPushBackMany_3(str, cstr, cstr_len)                                                                 \
        _Generic((cstr), Zstr: VecMustPushBackArrR((str), (Zstr)(cstr), (cstr_len)), char *: VecMustPushBackArrR((str), (Zstr)(cstr), (cstr_len)))
    
    // ---------------------------------------------------------------------------
    /// TAGS: Str, PushBack, Range, RValue, Must, Abort
    ///
    #define StrMustPushBackArrR(str, arr, count) VecMustPushBackArrR((str), (arr), (count))
    
    ///
Last updated on