This commit is contained in:
Behdad Esfahbod 2017-10-26 18:23:03 -06:00
parent 223686d64f
commit 6f08b12bc3
1 changed files with 3 additions and 3 deletions

View File

@ -98,10 +98,10 @@ private:
// Static assertions // Static assertions
#ifndef static_assert #ifndef static_assert
#define _PASTE1(a,b) a##b #define HB_PASTE1(a,b) a##b
#define _PASTE(a,b) _PASTE1(a,b) #define HB_PASTE(a,b) HB_PASTE1(a,b)
#define static_assert(e, msg) \ #define static_assert(e, msg) \
HB_UNUSED typedef int _PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1] HB_UNUSED typedef int HB_PASTE(static_assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]
#endif // static_assert #endif // static_assert
#endif // __cplusplus < 201103L #endif // __cplusplus < 201103L