зеркало из https://github.com/mozilla/pjs.git
Fixing a typo
This commit is contained in:
Родитель
3037600999
Коммит
d74ce409b5
|
@ -69,7 +69,7 @@ JS_Assert(const char *s, const char *file, JSIntn ln);
|
|||
#endif /* defined(DEBUG) */
|
||||
|
||||
/*
|
||||
* Compile-time assert. "condition" must be a constant expression.
|
||||
* Compile-time assert. "cond" must be a constant expression.
|
||||
* The macro can be used only in places where an "extern" declaration is
|
||||
* allowed.
|
||||
*/
|
||||
|
@ -81,7 +81,7 @@ JS_Assert(const char *s, const char *file, JSIntn ln);
|
|||
* Turn off this assert for Sun Studio until this bug is fixed.
|
||||
*/
|
||||
#ifdef __SUNPRO_CC
|
||||
#define JS_STATIC_ASSERT(condition)
|
||||
#define JS_STATIC_ASSERT(cond)
|
||||
#else
|
||||
#ifdef __COUNTER__
|
||||
#define JS_STATIC_ASSERT_GLUE1(x,y) x##y
|
||||
|
@ -89,7 +89,7 @@ JS_Assert(const char *s, const char *file, JSIntn ln);
|
|||
#define JS_STATIC_ASSERT(cond) \
|
||||
typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
|
||||
#else
|
||||
#define JS_STATIC_ASSERT(cond) extern void js_static_assert(int arg[(condition) ? 1 : -1])
|
||||
#define JS_STATIC_ASSERT(cond) extern void js_static_assert(int arg[(cond) ? 1 : -1])
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче