X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fboost.C;h=ff420ec555311da2a44d247c96dd3096e4951ec3;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=10494e226ad8ed57d0d0c36101edfed264d08906;hpb=e978fa42e38be22e9312be963ba6512fcd4b45ef;p=lyx.git diff --git a/src/boost.C b/src/boost.C index 10494e226a..ff420ec555 100644 --- a/src/boost.C +++ b/src/boost.C @@ -19,19 +19,21 @@ #include using std::endl; +using lyx::lyxerr; +using lyx::LyX; namespace boost { +#ifndef BOOST_NO_EXCEPTIONS void throw_exception(std::exception const & e) { lyxerr << "Exception caught:\n" << e.what() << endl; BOOST_ASSERT(false); } +#endif -namespace { - void emergencyCleanup() { static bool didCleanup; @@ -43,8 +45,6 @@ void emergencyCleanup() LyX::cref().emergencyCleanup(); } -} - void assertion_failed(char const * expr, char const * function, char const * file, long line) @@ -56,5 +56,4 @@ void assertion_failed(char const * expr, char const * function, lyx::support::abort(); } - -} +} // namespace boost