зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1155838 - Fix a build warning on windows; r=till
--HG-- extra : rebase_source : ddb1a54e08972dd6508da78f2747bcc60e188510
This commit is contained in:
Родитель
61e5af9fda
Коммит
094997013b
|
@ -14,13 +14,6 @@
|
||||||
#define TO_UINT32(x) ((x) >>> 0)
|
#define TO_UINT32(x) ((x) >>> 0)
|
||||||
#define IS_UINT32(x) ((x) >>> 0 === (x))
|
#define IS_UINT32(x) ((x) >>> 0 === (x))
|
||||||
|
|
||||||
// Assertions.
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define assert(b, info) if (!(b)) AssertionFailed(info)
|
|
||||||
#else
|
|
||||||
#define assert(b, info) // Elided assertion.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Unforgeable versions of ARRAY.push(ELEMENT) and ARRAY.slice.
|
// Unforgeable versions of ARRAY.push(ELEMENT) and ARRAY.slice.
|
||||||
#define ARRAY_PUSH(ARRAY, ELEMENT) \
|
#define ARRAY_PUSH(ARRAY, ELEMENT) \
|
||||||
callFunction(std_Array_push, ARRAY, ELEMENT);
|
callFunction(std_Array_push, ARRAY, ELEMENT);
|
||||||
|
|
|
@ -26,6 +26,14 @@
|
||||||
|
|
||||||
#include "SelfHostingDefines.h"
|
#include "SelfHostingDefines.h"
|
||||||
|
|
||||||
|
// Assertions, defined here instead of in the header above to make `assert`
|
||||||
|
// invisible to C++.
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define assert(b, info) if (!(b)) AssertionFailed(info)
|
||||||
|
#else
|
||||||
|
#define assert(b, info) // Elided assertion.
|
||||||
|
#endif
|
||||||
|
|
||||||
// All C++-implemented standard builtins library functions used in self-hosted
|
// All C++-implemented standard builtins library functions used in self-hosted
|
||||||
// code are installed via the std_functions JSFunctionSpec[] in
|
// code are installed via the std_functions JSFunctionSpec[] in
|
||||||
// SelfHosting.cpp.
|
// SelfHosting.cpp.
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
|
# undef assert
|
||||||
# undef min
|
# undef min
|
||||||
# undef max
|
# undef max
|
||||||
# undef GetProp
|
# undef GetProp
|
||||||
|
|
Загрузка…
Ссылка в новой задаче