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:
parent
1a54fedf74
commit
db024defaf
@ -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___ */
|
||||
|
||||
@ -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___ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user