From: Jim Meyering Date: Wed, 29 Jun 2005 17:10:44 +0000 (+0000) Subject: Use one fewer helper macro. X-Git-Tag: CPPI-1_12~449 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98f3ba52dfa31b9651b3bdf5d3cbcc44e19c1de2;p=thirdparty%2Fcoreutils.git Use one fewer helper macro. --- diff --git a/src/system.h b/src/system.h index 79d6dbb393..fbaeefe18b 100644 --- a/src/system.h +++ b/src/system.h @@ -812,12 +812,12 @@ ptr_align (void const *ptr, size_t alignment) return (void *) (p1 - (size_t) p1 % alignment); } -#define GL_CONCAT(x,y) x##y -#define GL_CONCAT2(x,y) GL_CONCAT(x,y) -#define GL_LINE_CONCAT(x) GL_CONCAT2(x, __LINE__) +#define GL_CONCAT0(x, y) x##y +#define GL_CONCAT(x, y) GL_CONCAT0 (x, y) /* Verify a requirement at compile-time (unlike assert, which is runtime). */ #define VERIFY(assertion) \ - struct GL_LINE_CONCAT(compile_time_assert) { char a[(assertion) ? 1 : -1]; } + struct GL_CONCAT (compile_time_assert_, __LINE__) \ + { char a[(assertion) ? 1 : -1]; } /* Like the above, but use an expression rather than a struct declaration. This macro may be used in some contexts where the other may not. */