966885645e
- primo rilascio (esecutore e lua da EgtInterface).
32 lines
1.1 KiB
C++
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) ;
|