2013-07-18 20:54:13 +00:00
|
|
|
//Copyright (c) 2006-2013 Emil Dotchevski and Reverge Studios, Inc.
|
2010-09-01 06:05:11 +00:00
|
|
|
|
|
|
|
//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)
|
|
|
|
|
|
|
|
#ifndef UUID_81522C0EB56511DFAB613DB0DFD72085
|
|
|
|
#define UUID_81522C0EB56511DFAB613DB0DFD72085
|
2013-09-30 16:01:02 +00:00
|
|
|
#if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
|
2013-07-18 20:54:13 +00:00
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
|
|
|
|
#pragma warning(push,1)
|
|
|
|
#endif
|
2010-09-01 06:05:11 +00:00
|
|
|
|
|
|
|
#ifdef BOOST_NO_EXCEPTIONS
|
2011-07-05 23:53:33 +00:00
|
|
|
# error This header requires exception handling to be enabled.
|
2010-09-01 06:05:11 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace
|
|
|
|
boost
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
exception_detail
|
|
|
|
{
|
2011-07-05 23:53:33 +00:00
|
|
|
class clone_base;
|
|
|
|
|
|
|
|
#ifdef BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR
|
|
|
|
int clone_current_exception_non_intrusive( clone_base const * & cloned );
|
|
|
|
#endif
|
|
|
|
|
2010-09-01 06:05:11 +00:00
|
|
|
namespace
|
|
|
|
clone_current_exception_result
|
|
|
|
{
|
|
|
|
int const success=0;
|
|
|
|
int const bad_alloc=1;
|
2010-09-03 02:03:15 +00:00
|
|
|
int const bad_exception=2;
|
|
|
|
int const not_supported=3;
|
2010-09-01 06:05:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline
|
|
|
|
int
|
|
|
|
clone_current_exception( clone_base const * & cloned )
|
|
|
|
{
|
2011-07-05 23:53:33 +00:00
|
|
|
#ifdef BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR
|
|
|
|
return clone_current_exception_non_intrusive(cloned);
|
2010-09-07 21:46:10 +00:00
|
|
|
#else
|
2010-09-01 06:05:11 +00:00
|
|
|
return clone_current_exception_result::not_supported;
|
2010-09-07 21:46:10 +00:00
|
|
|
#endif
|
2010-09-01 06:05:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-18 20:54:13 +00:00
|
|
|
#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
2010-09-01 06:05:11 +00:00
|
|
|
#endif
|