* boost.C: fix namespace problem regarding assertion_failed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15844
a592a061-630c-0410-9148-
cb99ea01b6c8
#include <exception>
-
-namespace lyx {
-
using std::endl;
+using lyx::lyxerr;
+using lyx::LyX;
namespace boost {
}
#endif
-namespace {
void emergencyCleanup()
{
LyX::cref().emergencyCleanup();
}
-}
-
void assertion_failed(char const * expr, char const * function,
char const * file, long line)
<< " by failing check \"" << expr << "\""
<< " in file " << file << ":" << line << endl;
emergencyCleanup();
- support::abort();
+ lyx::support::abort();
}
-
-}
-
-
-} // namespace lyx
+} // namespace boost
}
} // namespace lyx
-
-
-namespace boost {
-
-void assertion_failed(char const* a, char const* b, char const* c, long d)
-{
- lyx::lyxerr << "Assertion failed: " << a << ' ' << b << ' ' << c << ' '
- << d << '\n';
-}
-
-} // boost
-