Skip to content

Commit

Permalink
Add M_QUAD internal macros
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Nov 5, 2023
1 parent ace4c55 commit 4486196
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions m-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4486196

Please sign in to comment.