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.
13 #include "support/debug.h"
15 #include <boost/assert.hpp>
26 #ifndef BOOST_NO_EXCEPTIONS
27 void throw_exception(exception const & e)
29 lyxerr << "Exception caught:\n" << e.what() << endl;
35 void assertion_failed(char const * expr, char const * function,
36 char const * file, long line)
38 lyxerr << "Assertion triggered in " << function
39 << " by failing check \"" << expr << "\""
40 << " in file " << file << ":" << line << endl;
45 void assertion_failed_msg(char const * expr, char const * msg,
46 char const * function, char const * file, long line)
48 lyxerr << "Assertion triggered in " << function
49 << " by failing check \"" << expr << "\""
50 << " with message \"" << msg << "\""
51 << " in file " << file << ":" << line << endl;