From fe12ba2fc23a429022b683097ea0d01eb94c3233 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 10 Oct 2017 14:27:27 +0800 Subject: [PATCH] macro fix. --- native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.cpp | 4 ++-- native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.h | 4 ++-- native/cocos/scripting/js-bindings/jswrapper/v8/env.cc | 4 ++-- native/cocos/scripting/js-bindings/jswrapper/v8/env.h | 8 ++++---- .../scripting/js-bindings/jswrapper/v8/http_parser.c | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.cpp b/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.cpp index a652de3232..5062767e18 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.cpp +++ b/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.cpp @@ -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 #include @@ -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 diff --git a/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.h b/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.h index fa32dfc859..62fb65aa2c 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.h +++ b/native/cocos/scripting/js-bindings/jswrapper/v8/SHA1.h @@ -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 diff --git a/native/cocos/scripting/js-bindings/jswrapper/v8/env.cc b/native/cocos/scripting/js-bindings/jswrapper/v8/env.cc index 01b3525933..0376e29975 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/v8/env.cc +++ b/native/cocos/scripting/js-bindings/jswrapper/v8/env.cc @@ -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 diff --git a/native/cocos/scripting/js-bindings/jswrapper/v8/env.h b/native/cocos/scripting/js-bindings/jswrapper/v8/env.h index b080eeb7e1..9a971e2236 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/v8/env.h +++ b/native/cocos/scripting/js-bindings/jswrapper/v8/env.h @@ -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 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 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 diff --git a/native/cocos/scripting/js-bindings/jswrapper/v8/http_parser.c b/native/cocos/scripting/js-bindings/jswrapper/v8/http_parser.c index 15cf87a903..42634f1749 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/v8/http_parser.c +++ b/native/cocos/scripting/js-bindings/jswrapper/v8/http_parser.c @@ -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 #include @@ -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