Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
343 B
Raw Blame
#ifndef OPENMW_COMPONENTS_LUA_LUASTATEPTR_H
#define OPENMW_COMPONENTS_LUA_LUASTATEPTR_H

#include <sol/state.hpp>

#include <memory>

namespace LuaUtil
{
    struct CloseLuaState
    {
        void operator()(lua_State* state) noexcept { lua_close(state); }
    };

    using LuaStatePtr = std::unique_ptr<lua_State, CloseLuaState>;
}

#endif