Bug 1447480 - Add support of MOZ_FALLTHROUGH_ASSERT without any argument r=hsivonen

MozReview-Commit-ID: 6xrdrggcVFR

--HG--
extra : rebase_source : f53d9a62e828d65469c42c79a468b5bea2e8b645
This commit is contained in:
Sylvestre Ledru 2018-04-05 11:42:23 +02:00
parent 01abd7ce40
commit 99f0e1b624

View File

@ -596,7 +596,7 @@ struct AssertionConditionType
* }
*/
#ifdef DEBUG
# define MOZ_FALLTHROUGH_ASSERT(reason) MOZ_CRASH("MOZ_FALLTHROUGH_ASSERT: " reason)
# define MOZ_FALLTHROUGH_ASSERT(...) MOZ_CRASH("MOZ_FALLTHROUGH_ASSERT: " __VA_ARGS__)
#else
# define MOZ_FALLTHROUGH_ASSERT(...) MOZ_FALLTHROUGH
#endif