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 <boost/assert.hpp>
23 #ifndef BOOST_NO_EXCEPTIONS
24 void throw_exception(exception const & e)
26 cerr << "Exception caught:\n" << e.what() << endl;
32 void assertion_failed(char const * expr, char const * function,
33 char const * file, long line)
35 cerr << "Assertion triggered in " << function
36 << " by failing check \"" << expr << "\""
37 << " in file " << file << ":" << line << endl;
41 void assertion_failed_msg(char const * expr, char const * msg,
42 char const * function, char const * file, long line)
44 cerr << "Assertion triggered in " << function
45 << " by failing check \"" << expr << "\""
46 << " with message \"" << msg << "\""
47 << " in file " << file << ":" << line << endl;