summaryrefslogtreecommitdiff
path: root/hscript/script_l.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-26 02:08:20 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-26 02:08:20 -0500
commit82ca73034e9fc0756945ddbd9c9008a8b6443d69 (patch)
tree9cb88cbb63fc349b5a282ed143eeea652d3e36f7 /hscript/script_l.hh
parentdb86a77b1d79824d2ee42d617f9a04bf8c3f7210 (diff)
downloadhorizon-82ca73034e9fc0756945ddbd9c9008a8b6443d69.tar.gz
horizon-82ca73034e9fc0756945ddbd9c9008a8b6443d69.tar.bz2
horizon-82ca73034e9fc0756945ddbd9c9008a8b6443d69.tar.xz
horizon-82ca73034e9fc0756945ddbd9c9008a8b6443d69.zip
hscript: Implement (currently undocumented) 'inherit' key and tests
Diffstat (limited to 'hscript/script_l.hh')
-rw-r--r--hscript/script_l.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/hscript/script_l.hh b/hscript/script_l.hh
index 1f048c6..e1becc8 100644
--- a/hscript/script_l.hh
+++ b/hscript/script_l.hh
@@ -23,11 +23,11 @@ struct ScriptLocation {
std::string name;
/*! The line number of the current location. */
int line;
- /*! Whether this script is nested or the original script. */
- bool nested;
+ /*! Whether this script is inherited or the original script. */
+ bool inherited;
- ScriptLocation(std::string _n, int _l, bool _nest = false) :
- name{_n}, line{_l}, nested{_nest} {};
+ ScriptLocation(std::string _n, int _l, bool _inherit = false) :
+ name{_n}, line{_l}, inherited{_inherit} {};
};
}