diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-26 02:42:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-26 02:42:30 -0500 |
commit | 8b00a5779ace2b919f6d9f31fb50d37086a78914 (patch) | |
tree | ae07a14086aead37138c494207515e8e2ee914c4 /hscript/meta.hh | |
parent | 441543b73cffd6c589e4c848113dd126d984e07f (diff) | |
download | horizon-8b00a5779ace2b919f6d9f31fb50d37086a78914.tar.gz horizon-8b00a5779ace2b919f6d9f31fb50d37086a78914.tar.bz2 horizon-8b00a5779ace2b919f6d9f31fb50d37086a78914.tar.xz horizon-8b00a5779ace2b919f6d9f31fb50d37086a78914.zip |
hscript: Implement (undocumented, untested) 'version' key
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r-- | hscript/meta.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh index b885e99..ab22f1f 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -128,6 +128,16 @@ public: bool execute() const override; }; +class Version : public StringKey { +private: + Version(const Script *_s, const ScriptLocation &_p, const std::string &_v) : + StringKey(_s, _p, _v) {} +public: + static Key *parseFromData(const std::string &, const ScriptLocation &, + int *, int *, const Script *); + bool execute() const override; +}; + } } |