Bug 1155838 - Fix a build warning on windows; r=till

--HG--
extra : rebase_source : ddb1a54e08972dd6508da78f2747bcc60e188510
This commit is contained in:
Terrence Cole 2015-04-17 12:41:31 -07:00
Родитель 61e5af9fda
Коммит 094997013b
3 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -14,13 +14,6 @@
#define TO_UINT32(x) ((x) >>> 0)
#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.
#define ARRAY_PUSH(ARRAY, ELEMENT) \
callFunction(std_Array_push, ARRAY, ELEMENT);

Просмотреть файл

@ -26,6 +26,14 @@
#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
// code are installed via the std_functions JSFunctionSpec[] in
// SelfHosting.cpp.

Просмотреть файл

@ -14,6 +14,7 @@
#ifdef XP_WIN
# include <windows.h>
# undef assert
# undef min
# undef max
# undef GetProp