DefaultCommonExternalApi.cpp 1.4 KB

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