stdafx.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "TargetVer.h"
  7. #ifdef _WIN32
  8. #include <windows.h>
  9. #include <winbase.h>
  10. #include <oleauto.h>
  11. #pragma warning(disable:4985)
  12. #include <intrin.h>
  13. #include <wtypes.h>
  14. #include <stdio.h>
  15. #endif
  16. // This is an intentionally lame name because we can't use Assert or Verify etc
  17. #define VerifyCondition(expr) (DoVerify((expr), #expr, __FILE__, __LINE__))
  18. void DoVerify(bool value, const char * expr, const char * file, int line);
  19. #include "WeightedTable.h"
  20. #include "Common.h"
  21. #include "CommonInl.h"
  22. extern Recycler * recyclerInstance;
  23. #include "GCStress.h"
  24. #include "RecyclerTestObject.h"
  25. inline unsigned int GetRandomInteger(unsigned int limit)
  26. {
  27. return rand() % limit;
  28. }