diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-15 11:50:18 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-15 11:50:18 -0700 |
commit | 8c9b210626493dd93f236d7fb312c4f6dba62892 (patch) | |
tree | f7f0c345546eabd662d3ae855e1fbfc9a62bd43a /lib/verify.h | |
parent | eeafcea7ee4c253678e842342e0ea8ea0d442f30 (diff) |
* lib/ftoastr.c, lib/stdio.in.h, lib/verify.h: Merge from gnulib.
Diffstat (limited to 'lib/verify.h')
-rw-r--r-- | lib/verify.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/verify.h b/lib/verify.h index c6d30a35af..9a8caad001 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -221,10 +221,18 @@ template <int w> contexts, e.g., the top level. */ /* Verify requirement R at compile-time, as an integer constant expression. - Return 1. */ + Return 1. This is equivalent to verify_expr (R, 1). + + verify_true is obsolescent; please use verify_expr instead. */ # define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") +/* Verify requirement R at compile-time. Return the value of the + expression E. */ + +# define verify_expr(R, E) \ + (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E)) + /* Verify requirement R at compile-time, as a declaration without a trailing ';'. */ |