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