зеркало из https://github.com/mozilla/gecko-dev.git
Bug 307478 - Build failure with syntax error in nsDebug.h - Fixes AIX build bustage.
Patch by Rupesh Thota <trupesh@in.ibm.com> r=benjamin@smedbergs.us
This commit is contained in:
Родитель
5e466c921a
Коммит
128e470add
|
@ -216,10 +216,10 @@ PR_END_EXTERN_C
|
|||
|
||||
#endif /* ! NS_DEBUG */
|
||||
|
||||
// Macros for checking the trueness of an expression passed in within an
|
||||
// interface implementation. These need to be compiled regardless of the
|
||||
// NS_DEBUG flag
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/* Macros for checking the trueness of an expression passed in within an
|
||||
* interface implementation. These need to be compiled regardless of the */
|
||||
/* NS_DEBUG flag
|
||||
******************************************************************************/
|
||||
|
||||
#define NS_ENSURE_TRUE(x, ret) \
|
||||
PR_BEGIN_MACRO \
|
||||
|
@ -232,16 +232,16 @@ PR_END_EXTERN_C
|
|||
#define NS_ENSURE_FALSE(x, ret) \
|
||||
NS_ENSURE_TRUE(!(x), ret)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Macros for checking results
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/******************************************************************************
|
||||
** Macros for checking results
|
||||
******************************************************************************/
|
||||
|
||||
#define NS_ENSURE_SUCCESS(res, ret) \
|
||||
NS_ENSURE_TRUE(NS_SUCCEEDED(res), ret)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Macros for checking state and arguments upon entering interface boundaries
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/******************************************************************************
|
||||
** Macros for checking state and arguments upon entering interface boundaries
|
||||
******************************************************************************/
|
||||
|
||||
#define NS_ENSURE_ARG(arg) \
|
||||
NS_ENSURE_TRUE(arg, NS_ERROR_INVALID_ARG)
|
||||
|
@ -267,7 +267,7 @@ PR_END_EXTERN_C
|
|||
#define NS_ENSURE_PROPER_AGGREGATION(outer, iid) \
|
||||
NS_ENSURE_FALSE(outer && !iid.Equals(NS_GET_IID(nsISupports)), NS_ERROR_INVALID_ARG)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/*****************************************************************************/
|
||||
|
||||
#ifdef XPCOM_GLUE
|
||||
#define NS_CheckThreadSafe
|
||||
|
|
Загрузка…
Ссылка в новой задаче