blob: 74eb611023ac13d62845c15258bc7c8e83d5ddf4 [file] [log] [blame]
#ifndef _RIVE_LUA_STATE_HPP_
#define _RIVE_LUA_STATE_HPP_
#ifdef WITH_RIVE_SCRIPTING
#include "lua.h"
#endif
namespace rive
{
class LuaState
{
public:
#ifdef WITH_RIVE_SCRIPTING
LuaState(lua_State* state) : state(state) {}
~LuaState() { state = nullptr; }
lua_State* state;
#endif
};
} // namespace rive
#endif