lua gate new ctor

This commit is contained in:
Bluub
2021-06-17 18:20:02 +02:00
parent 0d5cfe109f
commit 6bfcac515f
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -12,6 +12,11 @@ namespace LuaG
luaL_openlibs(_state);
}
State::State(lua_State *L)
: _state(L)
{
}
State::~State()
{
lua_close(_state);
+4
View File
@@ -16,6 +16,10 @@ namespace LuaG
//! @brief ctor
State();
//! @brief ctor
State(lua_State *L);
//! @brief dtor
~State();