diff --git a/EGnLuaMgr.h b/EGnLuaMgr.h index 93494c4..fdf4458 100644 --- a/EGnLuaMgr.h +++ b/EGnLuaMgr.h @@ -38,7 +38,7 @@ class LuaMgr { Exit() ; } EGN_EXPORT bool Init( void) ; EGN_EXPORT bool Exit( void) ; - EGN_EXPORT bool GetVersion( std::string& sLuaVer) ; + EGN_EXPORT bool GetVersion( std::string& sLuaVer) const ; EGN_EXPORT bool SetLuaLibsDir( const std::string& sDir) ; EGN_EXPORT bool Require( const std::string& sFile) ; EGN_EXPORT bool RegisterFunction( const std::string& sFunName, PFLUA pFun) ; @@ -48,20 +48,20 @@ class LuaMgr EGN_EXPORT bool ExecFile( const std::string& sFile) ; EGN_EXPORT lua_State* GetLuaState( void) { return m_pL ; } - EGN_EXPORT const std::string& GetLastError( void) + EGN_EXPORT const std::string& GetLastError( void) const { return m_sLastError ; } - EGN_EXPORT const std::string& GetLuaLibsDir( void) + EGN_EXPORT const std::string& GetLuaLibsDir( void) const { return m_sLuaLibsDir ; } - EGN_EXPORT const std::string& GetLastRequire( void) + EGN_EXPORT const std::string& GetLastRequire( void) const { return m_sLastRequire ; } - EGN_EXPORT bool ExistsFunction( const std::string& sFunName) ; + EGN_EXPORT bool ExistsFunction( const std::string& sFunName) const ; template bool CallFunction( const std::string& sFunName, int nRets, const Args&... params) ; template bool GetFunctionReturns( Args&... rets) ; private : - EGN_EXPORT void LogError( const std::string& sErr) ; + EGN_EXPORT void LogError( const std::string& sErr) const ; private : lua_State* m_pL ;