EgtMachKernel :

- aggiunta gestione aree protette.
This commit is contained in:
Dario Sassi
2019-04-03 06:27:49 +00:00
parent fd31ea425e
commit 033b1ea5fa
3 changed files with 71 additions and 4 deletions
+2 -2
View File
@@ -128,14 +128,14 @@ Machine::LuaExit( void)
//----------------------------------------------------------------------------
bool
Machine::LuaExistsFunction( const string& sFun)
Machine::LuaExistsFunction( const string& sFun) const
{
// imposto contesto corretto
int nOldCtx = ExeGetCurrentContext() ;
if ( nOldCtx != m_pMchMgr->GetContextId())
ExeSetCurrentContext( m_pMchMgr->GetContextId()) ;
// imposto l'oggetto corrente per Lua
m_pMchLua = this ;
m_pMchLua = const_cast<Machine*>( this) ;
// verifico esistenza della funzione
bool bOk = m_LuaMgr.ExistsFunction( sFun) ;
// ripristino contesto originale