BigUIntTest.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Copyright (c) ChakraCore Project Contributors. All rights reserved.
  4. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  5. //-------------------------------------------------------------------------------------------------------
  6. // This file contains stubs needed to make BigIntTest successfully compile and link as well
  7. // as a means to emulate behavior of objects that interact with BigInt class
  8. #include "..\..\lib\Common\Warnings.h"
  9. #include "..\..\lib\Common\Core\Api.cpp"
  10. #include "..\..\lib\Common\Common\NumberUtilities.cpp"
  11. namespace Js
  12. {
  13. void Throw::FatalInternalError(long)
  14. {
  15. Assert(false);
  16. }
  17. bool Throw::ReportAssert(_In_ char const *, unsigned int, _In_ char const *, _In_ char const *)
  18. {
  19. return false;
  20. }
  21. void Throw::LogAssert(void) {}
  22. }
  23. template <typename EncodedChar>
  24. double Js::NumberUtilities::StrToDbl(const EncodedChar *, const EncodedChar **, LikelyNumberType& , bool, bool)
  25. {
  26. Assert(false);
  27. return 0.0;// don't care
  28. }
  29. #if defined(_M_IX86) || defined(_M_X64)
  30. BOOL
  31. AutoSystemInfo::SSE3Available() const
  32. {
  33. Assert(false);
  34. return TRUE;
  35. }
  36. AutoSystemInfo AutoSystemInfo::Data;
  37. void AutoSystemInfo::Initialize(void){}
  38. #endif
  39. #include "..\..\lib\Common\DataStructures\BigUInt.h"
  40. #include "..\..\lib\Common\DataStructures\BigUInt.cpp"