зеркало из https://github.com/mozilla/gecko-dev.git
Bug 719776 - Part 1 - Followup: Fix one more case of assuming ASSERT expands to an expression. r=bustage
This commit is contained in:
Родитель
034108c2de
Коммит
f6ce694430
|
@ -38,7 +38,10 @@
|
|||
#endif
|
||||
|
||||
#define ASSERT(assertion) MOZ_ASSERT(assertion)
|
||||
#define ASSERT_UNUSED(variable, assertion) (((void)variable), ASSERT(assertion))
|
||||
#define ASSERT_UNUSED(variable, assertion) do { \
|
||||
(void)variable; \
|
||||
ASSERT(assertion); \
|
||||
} while (0)
|
||||
#define ASSERT_NOT_REACHED() MOZ_NOT_REACHED("")
|
||||
#define CRASH() MOZ_CRASH()
|
||||
#define COMPILE_ASSERT(exp, name) MOZ_STATIC_ASSERT(exp, #name)
|
||||
|
|
Загрузка…
Ссылка в новой задаче