提交 6f08b12b 编写于 作者: B Behdad Esfahbod

Minor

上级 223686d6
...@@ -98,10 +98,10 @@ private: ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册