#include <exception>
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;
LyX::cref().emergencyCleanup();
}
-}
-
void assertion_failed(char const * expr, char const * function,
char const * file, long line)
lyx::support::abort();
}
-
-}
+} // namespace boost