#include "frontends/alert.h"
#include "frontends/Application.h"
+#include "support/lassert.h"
#include "support/debug.h"
#include "support/environment.h"
#include "support/ExceptionMessage.h"
LyX & LyX::ref()
{
- BOOST_ASSERT(singleton_);
+ LASSERT(singleton_, /**/);
return *singleton_;
}
LyX const & LyX::cref()
{
- BOOST_ASSERT(singleton_);
+ LASSERT(singleton_, /**/);
return *singleton_;
}
Session & LyX::session()
{
- BOOST_ASSERT(pimpl_->session_.get());
+ LASSERT(pimpl_->session_.get(), /**/);
return *pimpl_->session_.get();
}
Session const & LyX::session() const
{
- BOOST_ASSERT(pimpl_->session_.get());
+ LASSERT(pimpl_->session_.get(), /**/);
return *pimpl_->session_.get();
}
Server & LyX::server()
{
- BOOST_ASSERT(pimpl_->lyx_server_.get());
+ LASSERT(pimpl_->lyx_server_.get(), /**/);
return *pimpl_->lyx_server_.get();
}
Server const & LyX::server() const
{
- BOOST_ASSERT(pimpl_->lyx_server_.get());
+ LASSERT(pimpl_->lyx_server_.get(), /**/);
return *pimpl_->lyx_server_.get();
}
ServerSocket & LyX::socket()
{
- BOOST_ASSERT(pimpl_->lyx_socket_.get());
+ LASSERT(pimpl_->lyx_socket_.get(), /**/);
return *pimpl_->lyx_socket_.get();
}
ServerSocket const & LyX::socket() const
{
- BOOST_ASSERT(pimpl_->lyx_socket_.get());
+ LASSERT(pimpl_->lyx_socket_.get(), /**/);
return *pimpl_->lyx_socket_.get();
}
frontend::Application & LyX::application()
{
- BOOST_ASSERT(pimpl_->application_.get());
+ LASSERT(pimpl_->application_.get(), /**/);
return *pimpl_->application_.get();
}
frontend::Application const & LyX::application() const
{
- BOOST_ASSERT(pimpl_->application_.get());
+ LASSERT(pimpl_->application_.get(), /**/);
return *pimpl_->application_.get();
}
pair<map<string, Messages>::iterator, bool> result =
pimpl_->messages_.insert(make_pair(language, Messages(language)));
- BOOST_ASSERT(result.second);
+ LASSERT(result.second, /**/);
return result.first->second;
}
void LyX::earlyExit(int status)
{
- BOOST_ASSERT(pimpl_->application_.get());
+ LASSERT(pimpl_->application_.get(), /**/);
// LyX::pimpl_::application_ is not initialised at this
// point so it's safe to just exit after some cleanup.
prepareExit();
Server & theServer()
{
// FIXME: this should not be use_gui dependent
- BOOST_ASSERT(use_gui);
+ LASSERT(use_gui, /**/);
return LyX::ref().server();
}
ServerSocket & theServerSocket()
{
// FIXME: this should not be use_gui dependent
- BOOST_ASSERT(use_gui);
+ LASSERT(use_gui, /**/);
return LyX::ref().socket();
}