rename: s/verify_dcl/verify_decl/

This commit is contained in:
Jim Meyering committed 2005-07-04 17:39:48 +00:00
1 parent 14ad8a2da7
commit e2b7434615
1 file changed
+5 -5
+5 -5
View File
@@ -19,21 +19,21 @@
#ifndef VERIFY_H
# define VERIFY_H 1
# ifndef verify_dcl
# ifndef verify_decl
# define GL_CONCAT0(x, y) x##y
# define GL_CONCAT(x, y) GL_CONCAT0 (x, y)
/* Verify requirement, R, at compile-time, as a declaration.
The implementation uses a struct declaration whose name includes the
expansion of __LINE__, so there is a small chance that two uses of
verify_dcl from different files will end up colliding (for example,
f.c includes f.h and verify_dcl is used on the same line in each). */
# define verify_dcl(R) \
verify_decl from different files will end up colliding (for example,
f.c includes f.h and verify_decl is used on the same line in each). */
# define verify_decl(R) \
struct GL_CONCAT (ct_assert_, __LINE__) { char a[(R) ? 1 : -1]; }
# endif
/* Verify requirement, R, at compile-time, as an expression.
Unlike assert, there is no run-time overhead. Unlike verify_dcl,
Unlike assert, there is no run-time overhead. Unlike verify_decl,
above, there is no risk of collision, since there is no declared name.
This macro may be used in some contexts where the other may not, and
vice versa. Return void. */