mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 05:17:22 +02:00
Add noreturn/noexcept; use _exit on msvc-12.0 and earlier (and compatible); use ::quick_exit instead of std::quick_exit
This commit is contained in:
@ -21,9 +21,17 @@
|
|||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
void quick_exit( int code )
|
BOOST_NORETURN void quick_exit( int code ) BOOST_NOEXCEPT
|
||||||
{
|
{
|
||||||
std::quick_exit( code );
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
|
|
||||||
|
::_exit( code );
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
::quick_exit( code );
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
Reference in New Issue
Block a user