summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-29 17:10:44 +0000
committerJim Meyering <jim@meyering.net>2005-06-29 17:10:44 +0000
commit98f3ba52dfa31b9651b3bdf5d3cbcc44e19c1de2 (patch)
tree97b588de34438c53e094c01a2370d759f1f00185 /src/system.h
parenta9b919bde8b02a1768bd2a480fb2ca39e92ea2fd (diff)
downloadcoreutils-98f3ba52dfa31b9651b3bdf5d3cbcc44e19c1de2.tar.xz
Use one fewer helper macro.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/system.h b/src/system.h
index 79d6dbb39..fbaeefe18 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. */