added Hawk::setCmgr()

This commit is contained in:
hyung-hwan 2020-01-15 05:25:43 +00:00
parent 27e0b5f4f7
commit 8e1c106fe2
2 changed files with 8 additions and 2 deletions

View File

@ -1618,8 +1618,13 @@ void Hawk::close ()
hawk_cmgr_t* Hawk::getCmgr () const hawk_cmgr_t* Hawk::getCmgr () const
{ {
if (!this->hawk) return this->_cmgr; return this->hawk? hawk_getcmgr(this->hawk): this->_cmgr;
return hawk_getcmgr(this->hawk); }
void Hawk::setCmgr (hawk_cmgr_t* cmgr)
{
if (this->hawk) hawk_setcmgr(this->hawk, cmgr);
this->_cmgr = cmgr;
} }
void Hawk::uponClosing () void Hawk::uponClosing ()

View File

@ -1283,6 +1283,7 @@ public:
virtual ~Hawk () {} virtual ~Hawk () {}
hawk_cmgr_t* getCmgr () const; hawk_cmgr_t* getCmgr () const;
void setCmgr (hawk_cmgr_t* cmgr);
/// ///
/// The open() function initializes an interpreter. /// The open() function initializes an interpreter.