EgtExecutor 2.4h4 :

- aggiunta funzione ExeLuaExistsFunction.
This commit is contained in:
DarioS
2022-08-29 07:18:01 +02:00
parent d81116c118
commit 2f7a8a8f9c
3 changed files with 13 additions and 3 deletions
+8
View File
@@ -202,6 +202,14 @@ ExeLuaResetGlobVar( const string& sVar)
return LuaResetGlobVar( sVar) ;
}
//-----------------------------------------------------------------------------
bool
ExeLuaExistsFunction( const string& sFun)
{
// verifica esistenza funzione
return LuaExistsFunction( sFun) ;
}
//-----------------------------------------------------------------------------
bool
ExeLuaCallFunction( const string& sFun)
BIN
View File
Binary file not shown.
+5 -3
View File
@@ -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.
//
//
//
// 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) ; }
bool LuaResetGlobVar( const std::string& sVar) ;
bool LuaCreateGlobTable( const std::string& sVar) ;
inline bool LuaExistsFunction( const std::string& sFunName)
{ return LuaGetLuaMgr().ExistsFunction( sFunName) ; }
template<typename... Args>
bool LuaCallFunction( const std::string& sFunName, int nRets, const Args&... params)
{ return LuaGetLuaMgr().CallFunction( sFunName, nRets, params...) ; }