зеркало из https://github.com/mozilla/gecko-dev.git
Changed NS_ENSURE* macros to use the new NS_WARN_IF_FALSE instead of the NS_ERROR. r=shaver.
This commit is contained in:
Родитель
945748e712
Коммит
fa4392cf29
|
@ -823,13 +823,10 @@ CallQueryInterface( nsISupports* aSource, DestinationType** aDestination )
|
|||
// interface implementation.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define NS_ENSURE(x, ret) \
|
||||
PR_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
NS_ERROR("NS_ENSURE(" #x ") failed"); \
|
||||
return ret; \
|
||||
} \
|
||||
#define NS_ENSURE(x, ret) \
|
||||
PR_BEGIN_MACRO \
|
||||
if(NS_WARN_IF_FALSE(x, "NS_ENSURE(" #x ") failed")) \
|
||||
return ret; \
|
||||
PR_END_MACRO
|
||||
|
||||
#define NS_ENSURE_NOT(x, ret) \
|
||||
|
|
|
@ -823,13 +823,10 @@ CallQueryInterface( nsISupports* aSource, DestinationType** aDestination )
|
|||
// interface implementation.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define NS_ENSURE(x, ret) \
|
||||
PR_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
NS_ERROR("NS_ENSURE(" #x ") failed"); \
|
||||
return ret; \
|
||||
} \
|
||||
#define NS_ENSURE(x, ret) \
|
||||
PR_BEGIN_MACRO \
|
||||
if(NS_WARN_IF_FALSE(x, "NS_ENSURE(" #x ") failed")) \
|
||||
return ret; \
|
||||
PR_END_MACRO
|
||||
|
||||
#define NS_ENSURE_NOT(x, ret) \
|
||||
|
|
Загрузка…
Ссылка в новой задаче