2006-03-06 22:33:16 +00:00
|
|
|
/**
|
2007-04-25 18:04:04 +00:00
|
|
|
* \file boost.cpp
|
2006-03-06 22:33:16 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Lars Gullik Bjønnes
|
2006-03-06 22:33:16 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2009-03-18 22:49:51 +00:00
|
|
|
#include <cstdlib>
|
2008-05-16 17:14:42 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <boost/assert.hpp>
|
2006-03-06 22:33:16 +00:00
|
|
|
|
2008-03-20 10:04:55 +00:00
|
|
|
using namespace std;
|
2006-10-21 00:16:43 +00:00
|
|
|
|
2006-03-06 22:33:16 +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*/)
|
2006-03-06 22:33:16 +00:00
|
|
|
{
|
2008-05-16 17:14:42 +00:00
|
|
|
cerr<<"ASSERTION VIOLATED IN biblio test";
|
|
|
|
BOOST_ASSERT(false);
|
2006-03-06 22:33:16 +00:00
|
|
|
}
|
2008-03-20 10:04:55 +00:00
|
|
|
#endif
|
2006-03-06 22:33:16 +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
|