#ifndef OPENMW_COMPONENTS_LUA_LUASTATEPTR_H #define OPENMW_COMPONENTS_LUA_LUASTATEPTR_H #include #include namespace LuaUtil { struct CloseLuaState { void operator()(lua_State* state) noexcept { lua_close(state); } }; using LuaStatePtr = std::unique_ptr; } #endif