0966f86f9d
- utilizzato gestore lua di EgtGeneral.
33 lines
1.2 KiB
C++
33 lines
1.2 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 LuaRegisterFunction( const std::string& sFunName, PFLUA pFun) ;
|
|
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) ;
|