Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/exception/detail/clone_current_exception.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 //Copyright (c) 2006-2013 Emil Dotchevski and Reverge Studios, Inc. |
Chris@16 | 2 |
Chris@16 | 3 //Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@16 | 4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 5 |
Chris@16 | 6 #ifndef UUID_81522C0EB56511DFAB613DB0DFD72085 |
Chris@16 | 7 #define UUID_81522C0EB56511DFAB613DB0DFD72085 |
Chris@16 | 8 #if (__GNUC__*100+__GNUC_MINOR__>301) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) |
Chris@16 | 9 #pragma GCC system_header |
Chris@16 | 10 #endif |
Chris@16 | 11 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) |
Chris@16 | 12 #pragma warning(push,1) |
Chris@16 | 13 #endif |
Chris@16 | 14 |
Chris@16 | 15 #ifdef BOOST_NO_EXCEPTIONS |
Chris@16 | 16 # error This header requires exception handling to be enabled. |
Chris@16 | 17 #endif |
Chris@16 | 18 |
Chris@16 | 19 namespace |
Chris@16 | 20 boost |
Chris@16 | 21 { |
Chris@16 | 22 namespace |
Chris@16 | 23 exception_detail |
Chris@16 | 24 { |
Chris@16 | 25 class clone_base; |
Chris@16 | 26 |
Chris@16 | 27 #ifdef BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR |
Chris@16 | 28 int clone_current_exception_non_intrusive( clone_base const * & cloned ); |
Chris@16 | 29 #endif |
Chris@16 | 30 |
Chris@16 | 31 namespace |
Chris@16 | 32 clone_current_exception_result |
Chris@16 | 33 { |
Chris@16 | 34 int const success=0; |
Chris@16 | 35 int const bad_alloc=1; |
Chris@16 | 36 int const bad_exception=2; |
Chris@16 | 37 int const not_supported=3; |
Chris@16 | 38 } |
Chris@16 | 39 |
Chris@16 | 40 inline |
Chris@16 | 41 int |
Chris@16 | 42 clone_current_exception( clone_base const * & cloned ) |
Chris@16 | 43 { |
Chris@16 | 44 #ifdef BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR |
Chris@16 | 45 return clone_current_exception_non_intrusive(cloned); |
Chris@16 | 46 #else |
Chris@16 | 47 return clone_current_exception_result::not_supported; |
Chris@16 | 48 #endif |
Chris@16 | 49 } |
Chris@16 | 50 } |
Chris@16 | 51 } |
Chris@16 | 52 |
Chris@16 | 53 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) |
Chris@16 | 54 #pragma warning(pop) |
Chris@16 | 55 #endif |
Chris@16 | 56 #endif |