Sha256: 0de8f085851cc50221306337dd5b2be3ce20cc5817274bde84c92c40a9a76dd3
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
#ifndef BOOST_CORE_QUICK_EXIT_HPP_INCLUDED #define BOOST_CORE_QUICK_EXIT_HPP_INCLUDED // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif // boost/core/quick_exit.hpp // // Copyright 2018 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/config.hpp> #include <cstdlib> #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) extern "C" _CRTIMP __cdecl __MINGW_NOTHROW void _exit (int) __MINGW_ATTRIB_NORETURN; #endif #if defined(__CYGWIN__) && __cplusplus < 201103L extern "C" _Noreturn void quick_exit(int); #endif namespace boost { BOOST_NORETURN void quick_exit( int code ) BOOST_NOEXCEPT { #if defined(_MSC_VER) && _MSC_VER < 1900 ::_exit( code ); #elif defined(__MINGW32__) ::_exit( code ); #elif defined(__APPLE__) ::_Exit( code ); #else ::quick_exit( code ); #endif } } // namespace boost #endif // #ifndef BOOST_CORE_QUICK_EXIT_HPP_INCLUDED
Version data entries
5 entries across 5 versions & 1 rubygems