-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathDefaultCommonExternalApi.cpp
54 lines (44 loc) · 1.4 KB
/
DefaultCommonExternalApi.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
#include "Core/ConfigParser.h"
// Include this file got get the default behavior for JsUtil::ExternalApi functions.
void JsUtil::ExternalApi::RecoverUnusedMemory()
{
}
bool JsUtil::ExternalApi::RaiseOutOfMemoryIfScriptActive()
{
return false;
}
bool JsUtil::ExternalApi::RaiseOnIntOverflow()
{
return false;
}
LPCWSTR JsUtil::ExternalApi::GetFeatureKeyName()
{
return _u("");
}
bool JsUtil::ExternalApi::RaiseStackOverflowIfScriptActive(Js::ScriptContext * scriptContext, PVOID returnAddress)
{
return false;
}
ThreadContextId JsUtil::ExternalApi::GetCurrentThreadContextId()
{
return (ThreadContextId)::GetCurrentThreadId();
}
#if DBG || defined(EXCEPTION_CHECK)
BOOL JsUtil::ExternalApi::IsScriptActiveOnCurrentThreadContext()
{
return false;
}
#endif
bool ConfigParserAPI::FillConsoleTitle(__ecount(cchBufferSize) LPWSTR buffer, size_t cchBufferSize, __in LPWSTR moduleName)
{
return false;
}
void ConfigParserAPI::DisplayInitialOutput(__in LPWSTR moduleName)
{
}
IMPLEMENT_STUB_IsLikelyRuntimeFalseReference()