]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util-pre.qh
Replace `IF(ALL,` with `APPLY(`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util-pre.qh
index 0ad822939ab6a557b90b1e19cab625c01ca3684c..8fe729e7f0dafdda415e8a1e9fdec5ffebfbc5da 100644 (file)
@@ -83,6 +83,8 @@
 
 #define IDENTITY(it) it
 
+#define APPLY(f, ...) f(__VA_ARGS__)
+
 #ifdef SVQC
     #define SV(f, ...) f(__VA_ARGS__)
 #else
@@ -95,9 +97,7 @@
     #define CL(f, ...)
 #endif
 
-#define ALL(f, ...) f(__VA_ARGS__)
-
-#define IF(pred, f, ...) pred(f, __VA_ARGS__)
+#define IF(cond, f, ...) cond(f, __VA_ARGS__)
 
 #define GET(name) name##get
 #define GETTER(type, name) type GET(name)() { return name; }