From 82bdcc685ab363fff2a6a7f1448664cb394deebe Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 5 May 2023 22:15:13 +0200 Subject: [PATCH] Add internal macro MQLET for internal M_LET use --- m-core.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m-core.h b/m-core.h index 560739bb..61975fbf 100644 --- a/m-core.h +++ b/m-core.h @@ -4293,6 +4293,12 @@ m_core_parse2_enum (const char str[], const char **endptr) #define M_LET_TRY_INJECT_PRE(cont, oplist, name) #define M_LET_TRY_INJECT_POST(cont, oplist, name) +/* + Internal M_LET for use for withing container. +*/ +#define M_QLET(x, type, oplist) \ + M_LET(x, M_OPEXTEND(oplist, TYPE(type))) + /* Transform the va list by adding their number as the first argument of the list. Example: M_VA(a,b,c,d,e) ==> 5,a,b,c,d,e