Bug 714580 - Remove extra parens from JS_ASSERT_IF; r=Waldo
authorMs2ger <ms2ger@gmail.com>
Mon, 02 Jan 2012 21:55:34 +0100
changeset 83655 f301341f2e02f2ad33525f616dac019dc0f1e158
parent 83654 7d23dd6c50ebb19e7edeb495367c55352bbc809c
child 83666 cb73188eedf8255c212e5a55c1d4826c916a6f9b
push id21780
push userMs2ger@gmail.com
push dateTue, 03 Jan 2012 08:34:54 +0000
treeherdermozilla-central@f301341f2e02 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs714580
milestone12.0a1
first release with
nightly win64
f301341f2e02 / 12.0a1 / 20120103031056 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 714580 - Remove extra parens from JS_ASSERT_IF; r=Waldo
js/public/Utility.h
--- a/js/public/Utility.h
+++ b/js/public/Utility.h
@@ -69,17 +69,17 @@ JS_BEGIN_EXTERN_C
 
 /*
  * Pattern used to overwrite freed memory. If you are accessing an object with
  * this pattern, you probably have a dangling pointer.
  */
 #define JS_FREE_PATTERN 0xDA
 
 #define JS_ASSERT(expr)           MOZ_ASSERT(expr)
-#define JS_ASSERT_IF(cond, expr)  MOZ_ASSERT_IF((cond), (expr))
+#define JS_ASSERT_IF(cond, expr)  MOZ_ASSERT_IF(cond, expr)
 #define JS_NOT_REACHED(reason)    MOZ_NOT_REACHED(reason)
 #define JS_ALWAYS_TRUE(expr)      MOZ_ALWAYS_TRUE(expr)
 #define JS_ALWAYS_FALSE(expr)     MOZ_ALWAYS_FALSE(expr)
 
 #ifdef DEBUG
 # ifdef JS_THREADSAFE
 #  define JS_THREADSAFE_ASSERT(expr) JS_ASSERT(expr)
 # else