]> git.lyx.org Git - lyx.git/blobdiff - src/boost.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / boost.C
index 10494e226ad8ed57d0d0c36101edfed264d08906..b335e31c711f8b5d3e6e690718d2da3d6429f4ce 100644 (file)
 
 #include <exception>
 
+
+namespace lyx {
+
 using std::endl;
 
 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 {
 
@@ -53,8 +57,11 @@ void assertion_failed(char const * expr, char const * function,
               << " by failing check \"" << expr << "\""
               << " in file " << file << ":" << line << endl;
        emergencyCleanup();
-       lyx::support::abort();
+       support::abort();
 }
 
 
 }
+
+
+} // namespace lyx