]> git.lyx.org Git - lyx.git/blob - src/client/boost.cpp
1072bf8c3ea06ca3c12021257b5c79985d5454a7
[lyx.git] / src / client / boost.cpp
1 /**
2  * \file boost.cpp
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.h"
14 #include "debug.h"
15 #include "support/lyxlib.h"
16
17 #include <boost/assert.hpp>
18
19 #include <exception>
20 #include <ostream>
21
22
23 using std::endl;
24
25 namespace boost {
26
27 void throw_exception(std::exception const & e)
28 {
29         lyx::lyxerr << "Exception caught:\n" << e.what() << endl;
30         BOOST_ASSERT(false);
31 }
32
33 /*
34 void assertion_failed(char const * expr, char const * function,
35                       char const * file, long line)
36 {
37         lyx::lyxerr << "Assertion triggered in " << function
38                << " by failing check \"" << expr << "\""
39                << " in file " << file << ":" << line << endl;
40         lyx::support::abort();
41 }
42 */
43
44 } // namespace boost