Skip to content

Commit 802360f

Browse files
author
Nako Sung
committed
2 parents 2d7a1b8 + 04b4ba8 commit 802360f

File tree

8 files changed

+42
-5
lines changed

8 files changed

+42
-5
lines changed

Source/JavascriptUMG/JavascriptMultiBox.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "JavascriptUMG.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include "JavascriptMultiBox.h"
36
#include "SJavascriptBox.h"
47

@@ -62,3 +65,5 @@ void UJavascriptMultiBox::AddSubMenu(FJavascriptMenuBuilder& Builder, FName Id,
6265
);
6366
}
6467
}
68+
69+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/Debugger.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "V8PCH.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include "JavascriptIsolate.h"
36
#include "JavascriptContext.h"
47
#include "SocketSubSystem.h"
@@ -431,4 +434,6 @@ IJavascriptDebugger* IJavascriptDebugger::Create(int32 InPort, Local<Context> In
431434
{
432435
return nullptr;
433436
}
434-
#endif
437+
#endif
438+
439+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/Delegates.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "V8PCH.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include "JavascriptDelegate.h"
36
#include "Translator.h"
47
#include "Delegates.h"
@@ -400,4 +403,6 @@ void UJavascriptDelegate::ProcessEvent(UFunction* Function, void* Parms)
400403
{
401404
JavascriptDelegate.Pin()->Fire(Parms, this);
402405
}
403-
}
406+
}
407+
408+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/FunctionCall.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "V8PCH.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include "Translator.h"
36
#include "Exception.h"
47
#include "Helpers.h"
@@ -109,4 +112,6 @@ namespace v8
109112
}
110113
}
111114
}
112-
}
115+
}
116+
117+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/JavascriptContext_Private.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "V8PCH.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include "JavascriptIsolate.h"
36
#include "JavascriptContext.h"
47
#include "JavascriptComponent.h"
@@ -1884,3 +1887,5 @@ inline void FJavascriptContextImplementation::AddReferencedObjects(UObject * InT
18841887
Collector.AddReferencedObject(It.Key()->Struct, InThis);
18851888
}
18861889
}
1890+
1891+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/JavascriptIsolate_Private.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "V8PCH.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include "Config.h"
36
#include "MallocArrayBufferAllocator.h"
47
#include "Translator.h"
@@ -2292,4 +2295,6 @@ void FJavascriptFunction::Execute(UScriptStruct* Struct, void* Buffer)
22922295
auto function = Local<Function>::New(Handle->isolate, Handle->Function);
22932296
v8::Handle<Value> args[] = { arg };
22942297
function->Call(function, 1, args);
2295-
}
2298+
}
2299+
2300+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/V8Module.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "V8PCH.h"
2+
3+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
4+
25
#include <libplatform/libplatform.h>
36
#include "JavascriptContext.h"
47
#include "IV8.h"
@@ -192,4 +195,4 @@ class V8Module : public IV8
192195

193196
IMPLEMENT_MODULE(V8Module, V8)
194197

195-
198+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

Source/V8/Private/V8PCH.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
#pragma warning( disable : 4946 )
88
#pragma warning( disable : 4191 )
99

10+
PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
11+
1012
#include "v8.h"
1113
#include <v8-debug.h>
1214
#include <v8-profiler.h>
1315

16+
PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS
17+
1418
#pragma warning( pop )
1519

1620
DECLARE_LOG_CATEGORY_EXTERN(Javascript, Log, All);

0 commit comments

Comments
 (0)