2005-01-27 21:05:44 +00:00
|
|
|
|
/**
|
2007-04-25 18:04:04 +00:00
|
|
|
|
* \file boost.cpp
|
2005-01-27 21:05:44 +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>
|
|
|
|
|
|
2008-04-30 08:26:40 +00:00
|
|
|
|
#include "support/lassert.h"
|
2005-01-27 21:05:44 +00:00
|
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
|
#include <exception>
|
|
|
|
|
|
2008-03-20 10:04:55 +00:00
|
|
|
|
using namespace std;
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
2005-01-27 21:05:44 +00:00
|
|
|
|
namespace boost {
|
|
|
|
|
|
2008-03-20 10:04:55 +00:00
|
|
|
|
#ifndef BOOST_NO_EXCEPTIONS
|
2007-12-12 19:28:07 +00:00
|
|
|
|
void throw_exception(exception const & /*e*/)
|
2005-01-27 21:05:44 +00:00
|
|
|
|
{
|
2008-04-10 21:49:34 +00:00
|
|
|
|
LASSERT(false, /**/);
|
2005-01-27 21:05:44 +00:00
|
|
|
|
}
|
2008-03-20 10:04:55 +00:00
|
|
|
|
#endif
|
2005-01-27 21:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void assertion_failed(char const * /*expr*/, char const * /*function*/,
|
|
|
|
|
char const * /*file*/, long /*line*/)
|
|
|
|
|
{
|
|
|
|
|
::abort();
|
|
|
|
|
}
|
|
|
|
|
|
2008-03-20 10:04:55 +00:00
|
|
|
|
} // namespace boost
|