compile with luagate

This commit is contained in:
Bluub
2021-06-14 15:32:07 +02:00
parent a6140f6087
commit fb53f4b5b7
7 changed files with 36 additions and 25 deletions
@@ -17,7 +17,7 @@ namespace LuaG
lua_close(_state);
}
LuaState *State::getState(void)
lua_State *State::getState(void)
{
return _state;
}
@@ -10,6 +10,7 @@ namespace LuaG
class State
{
private:
//! @”rief Lua state
lua_State *_state;
public:
//! @brief ctor
@@ -19,10 +20,10 @@ namespace LuaG
~State();
//! @brief No copy constrructor
State(State &) = delete;
State(const State &) = delete;
//! @brief No assign operator
State &operator=(State &) = delete;
State &operator=(const State &) = delete;
//! @brief Get Lua state
lua_State *getState(void);
@@ -41,5 +42,5 @@ namespace LuaG
//! @brief call a lua function
bool callFunction(std::string funcName, int nbParams, int nbReturns);
}
};
}