macro fix.

This commit is contained in:
James Chen
2017-10-10 14:27:27 +08:00
parent e46581a4bc
commit fe12ba2fc2
5 changed files with 12 additions and 12 deletions
@@ -8,7 +8,7 @@
//#include "mozilla/EndianUtils.h"
#include "SHA1.h"
#if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#include <string.h>
#include <assert.h>
@@ -527,4 +527,4 @@ shaCompress(volatile unsigned* aX, const uint32_t* aBuf)
XH(4) += E;
}
#endif // #if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#endif // #if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
@@ -9,7 +9,7 @@
#pragma once
#include "../config.hpp"
#if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
//#include "mozilla/Types.h"
@@ -68,5 +68,5 @@ public:
} /* namespace se */
#endif // #if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#endif // #if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
@@ -1,6 +1,6 @@
#include "env.h"
#if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#include "uv.h"
@@ -119,4 +119,4 @@ namespace node {
} // namespace node {
#endif // #if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#endif // #if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
@@ -1,7 +1,7 @@
#pragma once
#include "../config.hpp"
#if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#include "inspector_agent.h"
@@ -295,7 +295,7 @@ v8::Eternal<TypeName> PropertyName ## _;
uv_loop_t* const event_loop_;
uint32_t* const zero_fill_field_;
DISALLOW_COPY_AND_ASSIGN(IsolateData);
NODE_DISALLOW_COPY_AND_ASSIGN(IsolateData);
};
class Environment
@@ -396,7 +396,7 @@ v8::Eternal<TypeName> PropertyName ## _;
private:
Environment* env_;
DISALLOW_COPY_AND_ASSIGN(AsyncCallbackScope);
NODE_DISALLOW_COPY_AND_ASSIGN(AsyncCallbackScope);
};
private:
@@ -625,5 +625,5 @@ Environment::NewFunctionTemplate(v8::FunctionCallback callback,
} // namespace node {
#endif // #if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#endif // #if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
@@ -23,7 +23,7 @@
*/
#include "http_parser.h"
#if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#include <assert.h>
#include <stddef.h>
@@ -2470,4 +2470,4 @@ http_parser_version(void) {
HTTP_PARSER_VERSION_PATCH * 0x00001;
}
#endif // #if defined(SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR
#endif // #if (SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8) && SE_ENABLE_INSPECTOR