]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(VERIFY_EXPR): Undef and add a comment.
authorJim Meyering <jim@meyering.net>
Thu, 30 Jun 2005 15:46:05 +0000 (15:46 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 30 Jun 2005 15:46:05 +0000 (15:46 +0000)
lib/xalloc.h

index cd48713baa1bbefcfccf53837b340295ad028dec..24b2d58040e1705b98785d02882d5294869e848c 100644 (file)
@@ -56,8 +56,10 @@ void *x2nrealloc (void *p, size_t *pn, size_t s);
 void *xmemdup (void const *p, size_t s);
 char *xstrdup (char const *str);
 
+/* Verify a requirement at compile-time (unlike assert, which is runtime).  */
+# undef VERIFY_EXPR
 # define VERIFY_EXPR(assertion) \
-    (void)((struct {char a[(assertion) ? 1 : -1]; } *) 0)
+   (void)((struct {char a[(assertion) ? 1 : -1]; } *) 0)
 
 /* Using x2realloc (when appropriate) usually makes your code more
    readable than using x2nrealloc, but it also makes it so your