Changed NS_ENSURE* macros to use the new NS_WARN_IF_FALSE instead of the NS_ERROR. r=shaver.

This commit is contained in:
tbogard%aol.net 1999-10-01 04:34:03 +00:00
parent 945748e712
commit fa4392cf29
2 changed files with 8 additions and 14 deletions

View File

@ -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) \

View File

@ -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) \