@ -779,7 +779,7 @@ extern void ExceptionalCondition(const char *conditionName,
# define StaticAssertStmt(condition, errmessage) \
do { _Static_assert ( condition , errmessage ) ; } while ( 0 )
# define StaticAssertExpr(condition, errmessage) \
( { StaticAssertStmt ( condition , errmessage ) ; true ; } )
( ( void ) ( { StaticAssertStmt ( condition , errmessage ) ; true ; } ) )
# else /* !HAVE__STATIC_ASSERT */
# define StaticAssertStmt(condition, errmessage) \
( ( void ) sizeof ( struct { int static_assert_failure : ( condition ) ? 1 : - 1 ; } ) )
@ -796,7 +796,7 @@ extern void ExceptionalCondition(const char *conditionName,
# define StaticAssertStmt(condition, errmessage) \
do { struct static_assert_struct { int static_assert_failure : ( condition ) ? 1 : - 1 ; } ; } while ( 0 )
# define StaticAssertExpr(condition, errmessage) \
( { StaticAssertStmt ( condition , errmessage ) ; } )
( ( void ) ( { StaticAssertStmt ( condition , errmessage ) ; } ) )
# endif
# endif /* C++ */
@ -817,14 +817,14 @@ extern void ExceptionalCondition(const char *conditionName,
StaticAssertStmt ( __builtin_types_compatible_p ( __typeof__ ( varname ) , typename ) , \
CppAsString ( varname ) " does not have type " CppAsString ( typename ) )
# define AssertVariableIsOfTypeMacro(varname, typename) \
( ( void ) StaticAssertExpr ( __builtin_types_compatible_p ( __typeof__ ( varname ) , typename ) , \
( StaticAssertExpr ( __builtin_types_compatible_p ( __typeof__ ( varname ) , typename ) , \
CppAsString ( varname ) " does not have type " CppAsString ( typename ) ) )
# else /* !HAVE__BUILTIN_TYPES_COMPATIBLE_P */
# define AssertVariableIsOfType(varname, typename) \
StaticAssertStmt ( sizeof ( varname ) = = sizeof ( typename ) , \
CppAsString ( varname ) " does not have type " CppAsString ( typename ) )
# define AssertVariableIsOfTypeMacro(varname, typename) \
( ( void ) StaticAssertExpr ( sizeof ( varname ) = = sizeof ( typename ) , \
( StaticAssertExpr ( sizeof ( varname ) = = sizeof ( typename ) , \
CppAsString ( varname ) " does not have type " CppAsString ( typename ) ) )
# endif /* HAVE__BUILTIN_TYPES_COMPATIBLE_P */