From 4486196a43e41273ea55b2fccbdd3082bade798a Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 5 Nov 2023 20:30:11 +0100 Subject: [PATCH] Add M_QUAD internal macros --- m-core.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m-core.h b/m-core.h index 94a5a816..50dc1907 100644 --- a/m-core.h +++ b/m-core.h @@ -1158,6 +1158,12 @@ M_BEGIN_PROTECTED_CODE #define M_TRIPLE_2(a,b,c) b #define M_TRIPLE_3(a,b,c) c +/* Same for quad */ +#define M_QUAD_1(a,b,c,d) a +#define M_QUAD_2(a,b,c,d) b +#define M_QUAD_3(a,b,c,d) c +#define M_QUAD_4(a,b,c,d) d + /* Skip the Nth first arguments of a VA_ARGS Generated by: for i in $(seq 0 52) ; do printf "#define M_SKIPI_%d(" $i ; for j in $(seq 1 $i) ; do printf "_%d, " $j ; done ; printf "...) __VA_ARGS__\n"; done