mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 713560 - Make MOZ_STATIC_ASSERT, when it expands to C++11 static_cast(), pass its reason argument along to static_cast in more compilers. r=typo-fix
This commit is contained in:
parent
2b1686ec69
commit
150afa32c7
@ -70,15 +70,15 @@
|
||||
# elif defined(__GNUC__)
|
||||
# if (defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L) && \
|
||||
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), #cond)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), reason)
|
||||
# endif
|
||||
# elif defined(_MSC_VER)
|
||||
# if _MSC_VER >= 1600 /* MSVC 10 */
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), #cond)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), reason)
|
||||
# endif
|
||||
# elif defined(__HP_aCC)
|
||||
# if __HP_aCC >= 62500 && defined(_HP_CXX0x_SOURCE)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), #cond)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), reason)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user