epoc32/include/stdapis/boost/ptr_container/detail/throw_exception.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 //
     2 // Boost.Pointer Container
     3 //
     4 //  Copyright Thorsten Ottosen 2006. Use, modification and
     5 //  distribution is subject to the Boost Software License, Version
     6 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
     7 //  http://www.boost.org/LICENSE_1_0.txt)
     8 //
     9 // For more information, see http://www.boost.org/libs/ptr_container/
    10 //
    11 
    12 #ifndef BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
    13 #define BOOST_PTR_CONTAINER_DETAIL_THROW_EXCEPTION
    14 
    15 #include <boost/assert.hpp>
    16 #include <boost/config.hpp>
    17 
    18 #ifdef BOOST_NO_EXCEPTIONS
    19 #define BOOST_PTR_CONTAINER_NO_EXCEPTIONS
    20 #endif
    21 
    22 #ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
    23 
    24 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) BOOST_ASSERT( !(If) && Msg ) 
    25 
    26 #else
    27 
    28 #define BOOST_PTR_CONTAINER_THROW_EXCEPTION( If, Ex, Msg ) if( (If) ) throw Ex ( Msg )
    29 
    30 #endif // BOOST_PTR_CONTAINER_NO_EXCEPTIONS
    31 
    32 
    33 #endif