diff options
| author | Paul Eggert | 2011-05-29 14:52:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-29 14:52:18 -0700 |
| commit | 6a3e57bb546b094bfc8ec24a3ec63b2bd4496d65 (patch) | |
| tree | 7941b467caf44ec0c4297e4a6afb1b4ab3f0b9a0 /lib/verify.h | |
| parent | e8cbec34e8ef069f54c1189a7b6109f768047be8 (diff) | |
| download | emacs-6a3e57bb546b094bfc8ec24a3ec63b2bd4496d65.tar.gz emacs-6a3e57bb546b094bfc8ec24a3ec63b2bd4496d65.zip | |
Adjust to recent gnulib change for @GUARD_PREFIX@.
Diffstat (limited to 'lib/verify.h')
| -rw-r--r-- | lib/verify.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/verify.h b/lib/verify.h index 3294b303505..c6d30a35af9 100644 --- a/lib/verify.h +++ b/lib/verify.h | |||
| @@ -164,10 +164,13 @@ | |||
| 164 | (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) | 164 | (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) |
| 165 | 165 | ||
| 166 | # ifdef __cplusplus | 166 | # ifdef __cplusplus |
| 167 | # if !GNULIB_defined_struct__gl_verify_type | ||
| 167 | template <int w> | 168 | template <int w> |
| 168 | struct _gl_verify_type { | 169 | struct _gl_verify_type { |
| 169 | unsigned int _gl_verify_error_if_negative: w; | 170 | unsigned int _gl_verify_error_if_negative: w; |
| 170 | }; | 171 | }; |
| 172 | # define GNULIB_defined_struct__gl_verify_type 1 | ||
| 173 | # endif | ||
| 171 | # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ | 174 | # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ |
| 172 | _gl_verify_type<(R) ? 1 : -1> | 175 | _gl_verify_type<(R) ? 1 : -1> |
| 173 | # elif defined _GL_HAVE__STATIC_ASSERT | 176 | # elif defined _GL_HAVE__STATIC_ASSERT |
| @@ -206,7 +209,7 @@ template <int w> | |||
| 206 | # endif | 209 | # endif |
| 207 | # endif | 210 | # endif |
| 208 | 211 | ||
| 209 | # ifdef _GL_VERIFY_H | 212 | /* @assert.h omit start@ */ |
| 210 | 213 | ||
| 211 | /* Each of these macros verifies that its argument R is nonzero. To | 214 | /* Each of these macros verifies that its argument R is nonzero. To |
| 212 | be portable, R should be an integer constant expression. Unlike | 215 | be portable, R should be an integer constant expression. Unlike |
| @@ -220,13 +223,13 @@ template <int w> | |||
| 220 | /* Verify requirement R at compile-time, as an integer constant expression. | 223 | /* Verify requirement R at compile-time, as an integer constant expression. |
| 221 | Return 1. */ | 224 | Return 1. */ |
| 222 | 225 | ||
| 223 | # define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") | 226 | # define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")") |
| 224 | 227 | ||
| 225 | /* Verify requirement R at compile-time, as a declaration without a | 228 | /* Verify requirement R at compile-time, as a declaration without a |
| 226 | trailing ';'. */ | 229 | trailing ';'. */ |
| 227 | 230 | ||
| 228 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")") | 231 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")") |
| 229 | 232 | ||
| 230 | # endif | 233 | /* @assert.h omit end@ */ |
| 231 | 234 | ||
| 232 | #endif | 235 | #endif |