зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1469769 - Part 7: Remove NS_NOTREACHED definition. r=froydnj
MozReview-Commit-ID: IwzSGKF3Osk --HG-- extra : source : a204fa73d06079b3fb4824e8e79942ab4518fc16 extra : histedit_source : 2378e1fd4ffdbc1af1b1d3a739ecf2e3de7d22cf
This commit is contained in:
Родитель
224e62cb6f
Коммит
1c725fea47
|
@ -105,20 +105,6 @@ inline void MOZ_PretendNoReturn()
|
|||
#define NS_ASSERTION(expr, str) do { /* nothing */ } while(0)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This macros triggers a program failure if executed. It indicates that
|
||||
* an attempt was made to execute a codepath which should not be reachable.
|
||||
*/
|
||||
#ifdef DEBUG
|
||||
#define NS_NOTREACHED(str) \
|
||||
do { \
|
||||
NS_DebugBreak(NS_DEBUG_ASSERTION, str, "Not Reached", __FILE__, __LINE__); \
|
||||
MOZ_PretendNoReturn(); \
|
||||
} while(0)
|
||||
#else
|
||||
#define NS_NOTREACHED(str) do { /* nothing */ } while(0)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Log an error message.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче