You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notcurses/src/libcpp/Root.cc

24 lines
408 B
C++

#include <ncpp/Root.hh>
#include <ncpp/NotCurses.hh>
using namespace ncpp;
notcurses* Root::get_notcurses () const
{
notcurses *ret;
if (nc != nullptr)
ret = *nc;
else
ret = NotCurses::get_instance ();
if (ret == nullptr)
throw invalid_state_error (ncpp_invalid_state_message);
return ret;
}
bool Root::is_notcurses_stopped () const noexcept
{
return NotCurses::is_notcurses_stopped (nc);
}