Skip to content
VecMustPushFrontArrR

VecMustPushFrontArrR

Description

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

Success

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

Failure

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

Usage example (Cross-references)

Usage examples (Cross-references)
        do {                                                                                                               \
            if (!VecPushFrontArrR((v), (arr), (count))) {                                                                  \
                LOG_FATAL("VecMustPushFrontArrR failed");                                                                  \
            }                                                                                                              \
        } while (0)
    #define StrMustPushFrontMany(...) OVERLOAD(StrMustPushFrontMany, __VA_ARGS__)
    #define StrMustPushFrontMany_2(str, zstr)                                                                          \
        _Generic((zstr), Zstr: VecMustPushFrontArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))), char *: VecMustPushFrontArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))))
    #define StrMustPushFrontMany_3(str, cstr, cstr_len)                                                                \
        _Generic((cstr), Zstr: VecMustPushFrontArrR((str), (Zstr)(cstr), (cstr_len)), char *: VecMustPushFrontArrR((str), (Zstr)(cstr), (cstr_len)))
        _Generic((zstr), Zstr: VecMustPushFrontArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))), char *: VecMustPushFrontArrR((str), (Zstr)(zstr), ZstrLen((Zstr)(zstr))))
    #define StrMustPushFrontMany_3(str, cstr, cstr_len)                                                                \
        _Generic((cstr), Zstr: VecMustPushFrontArrR((str), (Zstr)(cstr), (cstr_len)), char *: VecMustPushFrontArrR((str), (Zstr)(cstr), (cstr_len)))
    
    ///
    /// TAGS: Str, PushFront, Range, RValue, Must, Abort
    ///
    #define StrMustPushFrontArrR(str, arr, count) VecMustPushFrontArrR((str), (arr), (count))
    
    ///
Last updated on