123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef BOOST_DETAIL_NO_EXCEPTIONS_SUPPORT_HPP_
- #define BOOST_DETAIL_NO_EXCEPTIONS_SUPPORT_HPP_
- #if (defined _MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/config.hpp>
- #include <boost/detail/workaround.hpp>
- #if !(defined BOOST_NO_EXCEPTIONS)
- # define BOOST_TRY { try
- # define BOOST_CATCH(x) catch(x)
- # define BOOST_RETHROW throw;
- # define BOOST_CATCH_END }
- #else
- # if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
- # define BOOST_TRY { if ("")
- # define BOOST_CATCH(x) else if (!"")
- # else
- # define BOOST_TRY { if (true)
- # define BOOST_CATCH(x) else if (false)
- # endif
- # define BOOST_RETHROW
- # define BOOST_CATCH_END }
- #endif
- #endif
|