DefaultCommonExternalApi.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. LPWSTR JsUtil::ExternalApi::GetFeatureKeyName()
  20. {
  21. return L"";
  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. }