stdafx.h 1.1 KB

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