]> git.lyx.org Git - lyx.git/blob - src/client/boost.C
cleanup some debug messages
[lyx.git] / src / client / boost.C
1 /**
2  * \file boost.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "lyx_main.h"
14 #include "debug.h"
15 #include "support/lyxlib.h"
16
17 #include <boost/assert.hpp>
18
19 #include <exception>
20
21 using std::endl;
22
23 namespace boost {
24
25 void throw_exception(std::exception const & e)
26 {
27         lyxerr << "Exception caught:\n"
28             << e.what() << endl;
29         BOOST_ASSERT(false);
30 }
31
32
33 void assertion_failed(char const * expr, char const * function,
34                       char const * file, long line)
35 {
36         lyxerr << "Assertion triggered in " << function
37                << " by failing check \"" << expr << "\""
38                << " in file " << file << ":" << line << endl;
39         lyx::support::abort();
40 }
41
42
43 }