summaryrefslogtreecommitdiffhomepage
path: root/compat/macros1.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-28 20:00:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-28 20:00:41 +0100
commitc6c57b868f418f4566b2d6773e04300a313f41a6 (patch)
treea5a21a5222740bb3c098bd4bac4d12855b8f478a /compat/macros1.h
parentceb4eb29b7faefdd3ad8a2e5771aeee35e31177e (diff)
compat/macros: expand twice is enough
Diffstat (limited to 'compat/macros1.h')
-rw-r--r--compat/macros1.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/compat/macros1.h b/compat/macros1.h
index 915b8d29..b1137e63 100644
--- a/compat/macros1.h
+++ b/compat/macros1.h
@@ -29,12 +29,10 @@
#endif
#define PP_CAT(x,y) PP_CAT1(x,y)
-#define PP_CAT1(x,y) PP_CAT2(x,y)
-#define PP_CAT2(x,y) x ## y
+#define PP_CAT1(x,y) x ## y
#define PP_EXPAND(x) PP_EXPAND2(x)
-#define PP_EXPAND2(x) PP_EXPAND3(x) x
-#define PP_EXPAND3(x) x
+#define PP_EXPAND2(x) x
#ifdef _MSC_VER
# define unreachable() do { __assume(0); *(volatile int*)nullptr = 0; } while (0) /* NOLINT(clang-analyzer-core.NullDereference) */