Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/ptr_container/detail/throw_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 // |
Chris@16 | 2 // Boost.Pointer Container |
Chris@16 | 3 // |
Chris@16 | 4 // Copyright Thorsten Ottosen 2006. Use, modification and |
Chris@16 | 5 // distribution is subject to the Boost Software License, Version |
Chris@16 | 6 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 7 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 // |
Chris@16 | 9 // For more information, see http://www.boost.org/libs/ptr_container/ |
Chris@16 | 10 // |
Chris@16 | 11 |
Chris@16 | 12 #ifndef BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION |
Chris@16 | 13 #define BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION |
Chris@16 | 14 |
Chris@16 | 15 #include <boost/assert.hpp> |
Chris@16 | 16 #include <boost/config.hpp> |
Chris@16 | 17 |
Chris@16 | 18 #ifdef BOOST_NO_EXCEPTIONS |
Chris@16 | 19 #define BOOST_PTR_CONTAINER_NO_EXCEPTIONS |
Chris@16 | 20 #endif |
Chris@16 | 21 |
Chris@16 | 22 #ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS |
Chris@16 | 23 |
Chris@16 | 24 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) BOOST_ASSERT( !(If) && Msg ) |
Chris@16 | 25 |
Chris@16 | 26 #else |
Chris@16 | 27 |
Chris@16 | 28 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) if( (If) ) throw Ex ( Msg ) |
Chris@16 | 29 |
Chris@16 | 30 #endif // BOOST_PTR_CONTAINER_NO_EXCEPTIONS |
Chris@16 | 31 |
Chris@16 | 32 |
Chris@16 | 33 #endif |