Bug 898653 - Quell 'not enough parameters for macro' warnings in MSVC. r=djvj

--HG--
extra : rebase_source : 7e467027c24b795d6764894c12290a630663830e
This commit is contained in:
Till Schneidereit 2013-07-27 13:05:36 +02:00
parent 03bec36a20
commit 0fc93a0111
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@
(void)variable; \
ASSERT(assertion); \
} while (0)
#define ASSERT_NOT_REACHED() MOZ_ASSUME_UNREACHABLE()
#define ASSERT_NOT_REACHED() MOZ_ASSUME_UNREACHABLE("wtf/Assertions.h")
#define CRASH() MOZ_CRASH()
#define COMPILE_ASSERT(exp, name) static_assert(exp, #name)

View File

@ -3019,7 +3019,7 @@ IsCacheableScopeChain(JSObject *scopeChain, JSObject *holder)
}
}
MOZ_ASSUME_UNREACHABLE();
MOZ_ASSUME_UNREACHABLE("Invalid scope chain");
}
JSObject *

View File

@ -32,7 +32,7 @@
#endif
#define ASSERT MOZ_ASSERT
#define ASSERT_NOT_REACHED() MOZ_ASSUME_UNREACHABLE()
#define ASSERT_NOT_REACHED() MOZ_ASSUME_UNREACHABLE("moz-decimal-utils.h")
#define WTF_MAKE_NONCOPYABLE(ClassName) \
private: \