EgtMachKernel :
- aggiunta gestione aree protette.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user