mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1931877, part 3 - Add a "nothing" comment for all empty do loops in Assertions.h. r=glandium
My initial version of my patch for part 1 didn't have a "nothing" comment because I copied the empty loop from somewhere that didn't have it. If the comment is appropriate, let's make things consistent while I'm touching this file anyways. Differential Revision: https://phabricator.services.mozilla.com/D229500
This commit is contained in:
parent
67817a936e
commit
221b1aac47
@ -500,7 +500,7 @@ struct AssertionConditionType {
|
|||||||
("MOZ_ASSERT", __VA_ARGS__))
|
("MOZ_ASSERT", __VA_ARGS__))
|
||||||
#else
|
#else
|
||||||
# define MOZ_ASSERT(...) \
|
# define MOZ_ASSERT(...) \
|
||||||
do { \
|
do { /* nothing */ \
|
||||||
} while (false)
|
} while (false)
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
@ -511,7 +511,7 @@ struct AssertionConditionType {
|
|||||||
("MOZ_DIAGNOSTIC_ASSERT", __VA_ARGS__))
|
("MOZ_DIAGNOSTIC_ASSERT", __VA_ARGS__))
|
||||||
#else
|
#else
|
||||||
# define MOZ_DIAGNOSTIC_ASSERT(...) \
|
# define MOZ_DIAGNOSTIC_ASSERT(...) \
|
||||||
do { \
|
do { /* nothing */ \
|
||||||
} while (false)
|
} while (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -548,7 +548,7 @@ struct AssertionConditionType {
|
|||||||
} while (false)
|
} while (false)
|
||||||
#else
|
#else
|
||||||
# define MOZ_ASSERT_IF(cond, expr) \
|
# define MOZ_ASSERT_IF(cond, expr) \
|
||||||
do { \
|
do { /* nothing */ \
|
||||||
} while (false)
|
} while (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -568,7 +568,7 @@ struct AssertionConditionType {
|
|||||||
} while (false)
|
} while (false)
|
||||||
#else
|
#else
|
||||||
# define MOZ_DIAGNOSTIC_ASSERT_IF(cond, expr) \
|
# define MOZ_DIAGNOSTIC_ASSERT_IF(cond, expr) \
|
||||||
do { \
|
do { /* nothing */ \
|
||||||
} while (false)
|
} while (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -690,10 +690,10 @@ struct AssertionConditionType {
|
|||||||
*/
|
*/
|
||||||
#ifdef FUZZING
|
#ifdef FUZZING
|
||||||
# define MOZ_CRASH_UNLESS_FUZZING(...) \
|
# define MOZ_CRASH_UNLESS_FUZZING(...) \
|
||||||
do { \
|
do { /* nothing */ \
|
||||||
} while (0)
|
} while (0)
|
||||||
# define MOZ_ASSERT_UNLESS_FUZZING(...) \
|
# define MOZ_ASSERT_UNLESS_FUZZING(...) \
|
||||||
do { \
|
do { /* nothing */ \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
# define MOZ_CRASH_UNLESS_FUZZING(...) MOZ_CRASH(__VA_ARGS__)
|
# define MOZ_CRASH_UNLESS_FUZZING(...) MOZ_CRASH(__VA_ARGS__)
|
||||||
|
Loading…
Reference in New Issue
Block a user