8073994: STATIC_ASSERT use of __LINE__ is wrong
Reviewed-by: dholmes, ehelin
This commit is contained in:
parent
28adfbf0be
commit
5471bf0e8a
@ -223,8 +223,7 @@ template<bool x> struct STATIC_ASSERT_FAILURE;
|
|||||||
template<> struct STATIC_ASSERT_FAILURE<true> { enum { value = 1 }; };
|
template<> struct STATIC_ASSERT_FAILURE<true> { enum { value = 1 }; };
|
||||||
|
|
||||||
#define STATIC_ASSERT(Cond) \
|
#define STATIC_ASSERT(Cond) \
|
||||||
typedef char STATIC_ASSERT_FAILURE_ ## __LINE__ [ \
|
typedef char STATIC_ASSERT_DUMMY_TYPE[ STATIC_ASSERT_FAILURE< (Cond) >::value ]
|
||||||
STATIC_ASSERT_FAILURE< (Cond) >::value ]
|
|
||||||
|
|
||||||
// out of shared space reporting
|
// out of shared space reporting
|
||||||
enum SharedSpaceType {
|
enum SharedSpaceType {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user