stack_backtrace_abi.cpp 999 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright Andrey Semashev 2018.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. /*!
  8. * \file stack_backtrace_abi.cpp
  9. * \author Andrey Semashev
  10. * \date 10.03.2018
  11. *
  12. * \brief This file contains ABI test for stack_backtrace.hpp
  13. */
  14. #include <boost/winapi/stack_backtrace.hpp>
  15. #include <windows.h>
  16. #include "abi_test_tools.hpp"
  17. int main()
  18. {
  19. // MinGW does not provide RtlCaptureStackBackTrace
  20. #if !defined(BOOST_WINAPI_IS_MINGW)
  21. // Note: RtlCaptureStackBackTrace is available in WinXP SP1 and later
  22. #if (BOOST_USE_NTDDI_VERSION > BOOST_WINAPI_NTDDI_WINXP)
  23. #if BOOST_WINAPI_PARTITION_APP_SYSTEM
  24. BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(RtlCaptureStackBackTrace);
  25. #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
  26. #endif // (BOOST_USE_NTDDI_VERSION > BOOST_WINAPI_NTDDI_WINXP)
  27. #endif // !defined(BOOST_WINAPI_IS_MINGW)
  28. return boost::report_errors();
  29. }