Add internal macro MQLET for internal M_LET use

This commit is contained in:
Patrick Pelissier committed 2023-05-05 22:15:13 +02:00
1 parent 26fa733f70
commit 82bdcc685a
1 file changed
+6
+6
View File
@@ -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