2004-09-04 12:13:50 +00:00
|
|
|
|
/**
|
2007-04-25 18:04:04 +00:00
|
|
|
|
* \file boost.cpp
|
2004-09-04 12:13:50 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
|
#include "LyX.h"
|
2007-11-29 07:04:28 +00:00
|
|
|
|
#include "support/debug.h"
|
2004-09-04 12:13:50 +00:00
|
|
|
|
|
|
|
|
|
#include <boost/assert.hpp>
|
|
|
|
|
|
|
|
|
|
#include <exception>
|
2007-11-28 22:12:03 +00:00
|
|
|
|
#include <ostream>
|
2004-09-04 12:13:50 +00:00
|
|
|
|
|
2007-12-12 20:21:09 +00:00
|
|
|
|
using namespace std;
|
2004-09-04 12:13:50 +00:00
|
|
|
|
|
|
|
|
|
namespace boost {
|
|
|
|
|
|
2007-12-12 19:28:07 +00:00
|
|
|
|
void throw_exception(exception const & e)
|
2004-09-04 12:13:50 +00:00
|
|
|
|
{
|
2007-11-28 22:12:03 +00:00
|
|
|
|
lyx::lyxerr << "Exception caught:\n" << e.what() << endl;
|
2004-09-04 12:13:50 +00:00
|
|
|
|
BOOST_ASSERT(false);
|
|
|
|
|
}
|
|
|
|
|
|
2007-11-28 22:12:03 +00:00
|
|
|
|
/*
|
2004-09-04 12:13:50 +00:00
|
|
|
|
void assertion_failed(char const * expr, char const * function,
|
|
|
|
|
char const * file, long line)
|
|
|
|
|
{
|
2007-11-28 22:12:03 +00:00
|
|
|
|
lyx::lyxerr << "Assertion triggered in " << function
|
2004-09-04 12:13:50 +00:00
|
|
|
|
<< " by failing check \"" << expr << "\""
|
|
|
|
|
<< " in file " << file << ":" << line << endl;
|
|
|
|
|
lyx::support::abort();
|
|
|
|
|
}
|
2007-11-28 22:12:03 +00:00
|
|
|
|
*/
|
2004-09-04 12:13:50 +00:00
|
|
|
|
|
2007-11-28 22:12:03 +00:00
|
|
|
|
} // namespace boost
|