BigUIntTest.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. // This file contains stubs needed to make BigIntTest successfully compile and link as well
  6. // as a means to emulate behavior of objects that interact with BigInt class
  7. #include "..\..\lib\Common\Warnings.h"
  8. #include "..\..\lib\Common\Core\Api.cpp"
  9. #include "..\..\lib\Common\Common\NumberUtilities.cpp"
  10. namespace Js
  11. {
  12. void Throw::FatalInternalError(long)
  13. {
  14. Assert(false);
  15. }
  16. bool Throw::ReportAssert(__in char const *, unsigned int, __in char const *, __in char const *)
  17. {
  18. return false;
  19. }
  20. void Throw::LogAssert(void) {}
  21. }
  22. template <typename EncodedChar>
  23. double Js::NumberUtilities::StrToDbl(const EncodedChar *, const EncodedChar **, LikelyNumberType& , bool, bool)
  24. {
  25. Assert(false);
  26. return 0.0;// don't care
  27. }
  28. #if defined(_M_IX86) || defined(_M_X64)
  29. BOOL
  30. AutoSystemInfo::SSE3Available() const
  31. {
  32. Assert(false);
  33. return TRUE;
  34. }
  35. AutoSystemInfo AutoSystemInfo::Data;
  36. void AutoSystemInfo::Initialize(void){}
  37. #endif
  38. #include "..\..\lib\Common\DataStructures\BigUInt.h"
  39. #include "..\..\lib\Common\DataStructures\BigUInt.cpp"