EgtExecutor 2.4h4 :
- aggiunta funzione ExeLuaExistsFunction.
This commit is contained in:
@@ -202,6 +202,14 @@ ExeLuaResetGlobVar( const string& sVar)
|
|||||||
return LuaResetGlobVar( sVar) ;
|
return LuaResetGlobVar( sVar) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
bool
|
||||||
|
ExeLuaExistsFunction( const string& sFun)
|
||||||
|
{
|
||||||
|
// verifica esistenza funzione
|
||||||
|
return LuaExistsFunction( sFun) ;
|
||||||
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
bool
|
bool
|
||||||
ExeLuaCallFunction( const string& sFun)
|
ExeLuaCallFunction( const string& sFun)
|
||||||
|
|||||||
Binary file not shown.
+5
-3
@@ -1,13 +1,13 @@
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// EgalTech 2015-2015
|
// EgalTech 2015-2022
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// File : LUA_Base.h Data : 21.03.15 Versione : 1.6c6
|
// File : LUA_Base.h Data : 26.08.22 Versione : 2.4h4
|
||||||
// Contenuto : Dichiarazioni per funzioni di base gestione LUA.
|
// Contenuto : Dichiarazioni per funzioni di base gestione LUA.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Modifiche : 21.03.15 DS Creazione modulo.
|
// Modifiche : 21.03.15 DS Creazione modulo.
|
||||||
//
|
// 26.08.22 DS Aggiunta funzione LuaExistsFunction.
|
||||||
//
|
//
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -29,6 +29,8 @@ bool LuaGetGlobVar( const std::string& sVar, T& Val)
|
|||||||
{ return LuaGetGlobVar( LuaGetLuaMgr().GetLuaState(), sVar, Val) ; }
|
{ return LuaGetGlobVar( LuaGetLuaMgr().GetLuaState(), sVar, Val) ; }
|
||||||
bool LuaResetGlobVar( const std::string& sVar) ;
|
bool LuaResetGlobVar( const std::string& sVar) ;
|
||||||
bool LuaCreateGlobTable( const std::string& sVar) ;
|
bool LuaCreateGlobTable( const std::string& sVar) ;
|
||||||
|
inline bool LuaExistsFunction( const std::string& sFunName)
|
||||||
|
{ return LuaGetLuaMgr().ExistsFunction( sFunName) ; }
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
bool LuaCallFunction( const std::string& sFunName, int nRets, const Args&... params)
|
bool LuaCallFunction( const std::string& sFunName, int nRets, const Args&... params)
|
||||||
{ return LuaGetLuaMgr().CallFunction( sFunName, nRets, params...) ; }
|
{ return LuaGetLuaMgr().CallFunction( sFunName, nRets, params...) ; }
|
||||||
|
|||||||
Reference in New Issue
Block a user