Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:35

0001 //
0002 // Boost.Pointer Container
0003 //
0004 //  Copyright Thorsten Ottosen 2006. Use, modification and
0005 //  distribution is subject to the Boost Software License, Version
0006 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 //  http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // For more information, see http://www.boost.org/libs/ptr_container/
0010 //
0011 
0012 #ifndef BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
0013 #define BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
0014 
0015 #include <boost/assert.hpp>
0016 #include <boost/config.hpp>
0017 
0018 #ifdef BOOST_NO_EXCEPTIONS
0019 #define BOOST_PTR_CONTAINER_NO_EXCEPTIONS
0020 #endif
0021 
0022 #ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
0023 
0024 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) BOOST_ASSERT( !(If) && Msg )
0025 
0026 #else
0027 
0028 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) if( (If) ) throw Ex ( Msg )
0029 
0030 #endif // BOOST_PTR_CONTAINER_NO_EXCEPTIONS
0031 
0032 
0033 #endif