mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Changed NS_ENSURE* macros to use the new NS_WARN_IF_FALSE instead of the NS_ERROR. r=shaver.
This commit is contained in:
parent
945748e712
commit
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) \
|
||||
|
Loading…
Reference in New Issue
Block a user