#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 {
void emergencyCleanup()
{
- static bool didCleanup;
- if (didCleanup)
- return;
+ static bool didCleanup;
+ if (didCleanup)
+ return;
- didCleanup = true;
+ didCleanup = true;
- LyX::cref().emergencyCleanup();
+ LyX::cref().emergencyCleanup();
}
}
<< " by failing check \"" << expr << "\""
<< " in file " << file << ":" << line << endl;
emergencyCleanup();
- lyx::support::abort();
+ support::abort();
}
}
+
+
+} // namespace lyx