3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
15 #include "support/lyxlib.h"
17 #include <boost/assert.hpp>
27 #ifndef BOOST_NO_EXCEPTIONS
28 void throw_exception(std::exception const & e)
30 lyxerr << "Exception caught:\n"
37 void emergencyCleanup()
39 static bool didCleanup;
45 LyX::cref().emergencyCleanup();
49 void assertion_failed(char const * expr, char const * function,
50 char const * file, long line)
52 lyxerr << "Assertion triggered in " << function
53 << " by failing check \"" << expr << "\""
54 << " in file " << file << ":" << line << endl;
56 lyx::support::abort();