123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef BOOST_CORE_DETAIL_LWT_UNATTENDED_HPP_INCLUDED
- #define BOOST_CORE_DETAIL_LWT_UNATTENDED_HPP_INCLUDED
- #include <cstdlib>
- #if defined(_MSC_VER) && defined(_CPPLIB_VER) && defined(_DEBUG)
- # include <crtdbg.h>
- #endif
- namespace boost
- {
- namespace core
- {
- namespace detail
- {
- inline void lwt_unattended()
- {
- #if defined(_MSC_VER) && (_MSC_VER > 1310)
-
- ::_set_abort_behavior( 0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT );
- # pragma warning(push)
- # pragma warning(disable: 4996)
- # if defined(__clang__)
- # pragma clang diagnostic push
- # pragma clang diagnostic ignored "-Wdeprecated-declarations"
- # endif
- #if !defined(WINAPI_FAMILY) || WINAPI_FAMILY == 100
-
- ::_seterrormode( 0x0002 );
- #endif
- # if defined(__clang__)
- # pragma clang diagnostic pop
- # endif
- # pragma warning(pop)
- #endif
- #if defined(_MSC_VER) && defined(_CPPLIB_VER) && defined(_DEBUG)
-
- _CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE );
- _CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
- #endif
- }
- }
- }
- }
- #endif
|