#include <config.h>
-#include "support/debug.h"
-
#include <boost/assert.hpp>
#include <cstdlib>
#include <exception>
-#include <ostream>
+#include <iostream>
using namespace std;
void throw_exception(std::exception const & e)
{
- lyx::lyxerr << "Exception caught:\n"
+ cerr << "Exception caught:\n"
<< e.what() << endl;
BOOST_ASSERT(false);
}
void assertion_failed(char const * expr, char const * function,
char const * file, long line)
{
- lyx::lyxerr << "Assertion triggered in " << function
- << " by failing check \"" << expr << "\""
- << " in file " << file << ":" << line << endl;
+ cerr << "Assertion triggered in " << function
+ << " by failing check \"" << expr << "\""
+ << " in file " << file << ":" << line << endl;
::abort();
}
#include "TextClass.h"
#include "support/convert.h"
-#include "support/debug.h"
#include "support/ExceptionMessage.h"
#include "support/filetools.h"
#include "support/lassert.h"
void warning(docstring const & title, docstring const & message,
bool const &)
{
- LYXERR0(title);
- LYXERR0(message);
+ cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
}
}
}