bug 551782 - move PR_STATIC_ASSERT from prlog.h to prtypes.h. Patch by Zack Weinberg <zweinberg@mozilla.com>, r=me

git-svn-id: svn://10.0.0.236/trunk@259988 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ted.mielczarek%gmail.com 2010-03-15 17:53:44 +00:00
parent 1a54fedf74
commit db024defaf
2 changed files with 8 additions and 8 deletions

View File

@ -248,14 +248,6 @@ NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln);
#endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */
/*
** Compile-time assert. "condition" must be a constant expression.
** The macro can be used only in places where an "extern" declaration is
** allowed.
*/
#define PR_STATIC_ASSERT(condition) \
extern void pr_static_assert(int arg[(condition) ? 1 : -1])
PR_END_EXTERN_C
#endif /* prlog_h___ */

View File

@ -519,6 +519,14 @@ typedef unsigned long PRUword;
/********* ????????????? End Fix me ?????????????????????????????? *****/
#endif /* NO_NSPR_10_SUPPORT */
/*
** Compile-time assert. "condition" must be a constant expression.
** The macro can be used only in places where an "extern" declaration is
** allowed.
*/
#define PR_STATIC_ASSERT(condition) \
extern void pr_static_assert(int arg[(condition) ? 1 : -1])
PR_END_EXTERN_C
#endif /* prtypes_h___ */