mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(VERIFY_EXPR): Undef and add a comment.
This commit is contained in:
1 parent
b2915239d7
commit
4ff07ebe3c
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user