Followup to minmax patch
Co-Authored-By: Palatis <palatis@gmail.com>
This commit is contained in:
parent
3c40933713
commit
fb8a07660a
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@
|
|||
#define MIN_3(a,...) MIN_2(a,MIN_2(__VA_ARGS__))
|
||||
#define MIN_4(a,...) MIN_2(a,MIN_3(__VA_ARGS__))
|
||||
#define MIN_5(a,...) MIN_2(a,MIN_4(__VA_ARGS__))
|
||||
#define MIN_6(a,...) MIN_2(a,MIN_4(__VA_ARGS__))
|
||||
#define MIN_6(a,...) MIN_2(a,MIN_5(__VA_ARGS__))
|
||||
#define __MIN_N(N, ...) MIN_ ## N(__VA_ARGS__)
|
||||
#define _MIN_N(N, ...) __MIN_N(N, __VA_ARGS__)
|
||||
#define MIN(...) _MIN_N(NUM_ARGS(__VA_ARGS__), __VA_ARGS__)
|
||||
|
@ -60,7 +60,7 @@
|
|||
#define MAX_3(a,...) MAX_2(a,MAX_2(__VA_ARGS__))
|
||||
#define MAX_4(a,...) MAX_2(a,MAX_3(__VA_ARGS__))
|
||||
#define MAX_5(a,...) MAX_2(a,MAX_4(__VA_ARGS__))
|
||||
#define MAX_6(a,...) MAX_2(a,MAX_4(__VA_ARGS__))
|
||||
#define MAX_6(a,...) MAX_2(a,MAX_5(__VA_ARGS__))
|
||||
#define __MAX_N(N, ...) MAX_ ## N(__VA_ARGS__)
|
||||
#define _MAX_N(N, ...) __MAX_N(N, __VA_ARGS__)
|
||||
#define MAX(...) _MAX_N(NUM_ARGS(__VA_ARGS__), __VA_ARGS__)
|
||||
|
|
Reference in a new issue