From 535e00366ae9968e3e513007741ee2389f67ed6c Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 18 Mar 2023 00:06:41 +0100 Subject: [PATCH] Correct reported errors --- m-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-core.h b/m-core.h index d42039c4..73755393 100644 --- a/m-core.h +++ b/m-core.h @@ -4387,7 +4387,7 @@ m_core_parse2_enum (const char str[], const char **endptr) (M_INIT_WITH_EMPLACE_TYPE_2, M_INIT_WITH_NOT_AVAILABLE) \ (oplist, dst, __VA_ARGS__) #define M_INIT_WITH_NOT_AVAILABLE(oplist, dst, ...) \ - M_STATIC_FAILURE(M_LIB_ILLEGAL_EMPLACE_TYPE, \ + M_STATIC_ASSERT(false, M_LIB_ILLEGAL_EMPLACE_TYPE, \ "Cannot INIT_WITH through EMPLACE_TYPE, such operator is not provided in the given oplist: " #oplist) #define M_INIT_WITH_EMPLACE_TYPE_2(oplist, dst, ...) \ M_INIT_WITH_EMPLACE_TYPE_3(M_GET_EMPLACE_TYPE oplist, oplist, dst, __VA_ARGS__) @@ -4396,7 +4396,7 @@ m_core_parse2_enum (const char str[], const char **endptr) (M_INIT_WITH_EMPLACE_TYPE_4, M_INIT_WITH_EMPLACE_TYPE_FAIL) \ (emplace_type, oplist, dst, __VA_ARGS__) #define M_INIT_WITH_EMPLACE_TYPE_FAIL(emplace_type, oplist, dst, ...) \ - M_STATIC_FAILURE(M_LIB_ILLEGAL_EMPLACE_TYPE, \ + M_STATIC_ASSERT(false, M_LIB_ILLEGAL_EMPLACE_TYPE, \ "Only LIST based EMPLACE_TYPE with explicit init_func (No INIT_WITH) are supported") #define M_INIT_WITH_EMPLACE_TYPE_4(emplace_type, oplist, dst, ...) \ _Generic( M_RET_ARG1( __VA_ARGS__, ) \