From 5ac08e42d842598eee10f4a83889179c869bacea Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 4 Jun 2022 23:40:36 +0200 Subject: [PATCH] Adding const for the type generation in emplace --- m-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-core.h b/m-core.h index 7c263851..18cdd866 100644 --- a/m-core.h +++ b/m-core.h @@ -3991,9 +3991,9 @@ m_core_parse2_enum (const char str[], const char **endptr) #define M_EMPLACE_LIST_TYPE_VAR_MULTI(prefix, emplace_type) \ M_MAP3(M_EMPLACE_LIST_TYPE_VAR_MULTI_F, prefix, M_ID emplace_type) #define M_EMPLACE_LIST_TYPE_VAR_MULTI_F(prefix, num, type) \ - , type M_C(prefix, num) + , type const M_C(prefix, num) #define M_EMPLACE_LIST_TYPE_VAR_SINGLE(prefix, emplace_type) \ - , emplace_type prefix + , emplace_type const prefix /* Expand to the list of variable name based on the the declaration with