EgtExecutor 1.6g3 :
- correzione controlli in ExeCreateGeoFrame - ExeInitGeomDB rinominata ExeInitContext - aggiunta ExeDeleteContext - migliorato log di ExeExit - aggiunta possibilità di leggere e scrivere variabili LUA_Base.cpp - aggiunta possibilità di chiamare funzioni Lua.
This commit is contained in:
+12
-4
@@ -17,6 +17,7 @@
|
||||
#include "LUA.h"
|
||||
#include "LUA_Base.h"
|
||||
#include "/EgtDev/Include/EXeExecutor.h"
|
||||
#include "/EgtDev/Include/EGkLuaAux.h"
|
||||
#include "/EgtDev/Include/EGnLuaMgr.h"
|
||||
|
||||
using namespace std ;
|
||||
@@ -136,6 +137,13 @@ LuaExit( void)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
LuaMgr&
|
||||
LuaGetLuaMgr( void)
|
||||
{
|
||||
return s_LuaMgr ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
LuaSetLuaLibsDir( const string& sDir)
|
||||
@@ -152,16 +160,16 @@ LuaRequire( const string& sFile)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
LuaEvalNumExpr( const string& sExpr, double& dVal)
|
||||
LuaResetGlobVar( const string& sVar)
|
||||
{
|
||||
return s_LuaMgr.EvalNumExpr( sExpr, dVal) ;
|
||||
return LuaResetGlobVar( s_LuaMgr.GetLuaState(), sVar) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
LuaEvalStringExpr( const string& sExpr, string& sVal)
|
||||
LuaCreateGlobTable( const string& sVar)
|
||||
{
|
||||
return s_LuaMgr.EvalStringExpr( sExpr, sVal) ;
|
||||
return LuaCreateGlobTable( s_LuaMgr.GetLuaState(), sVar) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user