1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-26 21:36:21 +00:00

🐛 Fix NONE, ALL, EVAL macro collision (#27132)

This commit is contained in:
Mihai 2024-05-29 02:22:39 +03:00 committed by GitHub
parent e7c9cf3e1d
commit a4a0887fa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,8 +197,8 @@
#define ENABLED(V...) DO(ENA,&&,V) #define ENABLED(V...) DO(ENA,&&,V)
#define DISABLED(V...) DO(DIS,&&,V) #define DISABLED(V...) DO(DIS,&&,V)
#define ANY(V...) !DISABLED(V) #define ANY(V...) !DISABLED(V)
#define ALL ENABLED #define ALL(V...) ENABLED(V)
#define NONE DISABLED #define NONE(V...) DISABLED(V)
#define COUNT_ENABLED(V...) DO(ENA,+,V) #define COUNT_ENABLED(V...) DO(ENA,+,V)
#define MANY(V...) (COUNT_ENABLED(V) > 1) #define MANY(V...) (COUNT_ENABLED(V) > 1)
@ -630,7 +630,7 @@
#define DEFER4(M) M EMPTY EMPTY EMPTY EMPTY()()()() #define DEFER4(M) M EMPTY EMPTY EMPTY EMPTY()()()()
// Force define expansion // Force define expansion
#define EVAL EVAL16 #define EVAL(V...) EVAL16(V)
#define EVAL4096(V...) EVAL2048(EVAL2048(V)) #define EVAL4096(V...) EVAL2048(EVAL2048(V))
#define EVAL2048(V...) EVAL1024(EVAL1024(V)) #define EVAL2048(V...) EVAL1024(EVAL1024(V))
#define EVAL1024(V...) EVAL512(EVAL512(V)) #define EVAL1024(V...) EVAL512(EVAL512(V))