Files
EgtExecutor/LUA_Base.h
T
Dario Sassi 966885645e EgtExecutor 1.6e2 :
- primo rilascio (esecutore e lua da EgtInterface).
2015-05-05 22:14:04 +00:00

32 lines
1.1 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : LUA_Base.h Data : 21.03.15 Versione : 1.6c6
// Contenuto : Dichiarazioni per funzioni di base gestione LUA.
//
//
//
// Modifiche : 21.03.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include <string>
//----------------------------------------------------------------------------
struct lua_State ;
typedef int(*PFLUA) ( lua_State*) ;
//----------------------------------------------------------------------------
bool LuaInit( void) ;
bool LuaExit( void) ;
bool LuaSetLuaLibsDir( const std::string& sDir) ;
bool LuaRequire( const std::string& sFile) ;
bool LuaEvalNumExpr( const std::string& sExpr, double& dVal) ;
bool LuaEvalStringExpr( const std::string& sExpr, std::string& sVal) ;
bool LuaExecLine( const std::string& sLine) ;
bool LuaExecFile( const std::string& sFile) ;
const std::string& LuaGetLastError( void) ;