From c6c57b868f418f4566b2d6773e04300a313f41a6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 28 Feb 2019 20:00:41 +0100 Subject: compat/macros: expand twice is enough --- compat/macros1.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'compat') 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) */ -- cgit v1.2.3