Add api_version gloabal variable to profiles

Currently only `0` is supported (the default).
This commit is contained in:
Patrick Niklaus
2016-12-01 22:10:56 +00:00
committed by Patrick Niklaus
parent b9b52cb857
commit 0f3a463854
9 changed files with 29 additions and 0 deletions
@@ -30,6 +30,8 @@ struct LuaScriptingContext final
bool has_node_function;
bool has_way_function;
bool has_segment_function;
int api_version;
};
/**
@@ -42,6 +44,9 @@ struct LuaScriptingContext final
class Sol2ScriptingEnvironment final : public ScriptingEnvironment
{
public:
static const constexpr int SUPPORTED_MIN_API_VERSION = 0;
static const constexpr int SUPPORTED_MAX_API_VERSION = 0;
explicit Sol2ScriptingEnvironment(const std::string &file_name);
~Sol2ScriptingEnvironment() override = default;