diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-26 00:12:13 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-26 00:12:13 -0500 |
commit | db86a77b1d79824d2ee42d617f9a04bf8c3f7210 (patch) | |
tree | b5814b658edad1a3691bb1b798d400e7f2e5a0dc /hscript/script.hh | |
parent | cedb2d224da81edcca1191e7812713e308174889 (diff) | |
download | horizon-db86a77b1d79824d2ee42d617f9a04bf8c3f7210.tar.gz horizon-db86a77b1d79824d2ee42d617f9a04bf8c3f7210.tar.bz2 horizon-db86a77b1d79824d2ee42d617f9a04bf8c3f7210.tar.xz horizon-db86a77b1d79824d2ee42d617f9a04bf8c3f7210.zip |
hscript: Convert 'int line' to a ScriptLocation object
Diffstat (limited to 'hscript/script.hh')
-rw-r--r-- | hscript/script.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hscript/script.hh b/hscript/script.hh index c874bd3..9befb41 100644 --- a/hscript/script.hh +++ b/hscript/script.hh @@ -18,6 +18,8 @@ #include <memory> #include <bitset> +#include <hscript/script_l.hh> + namespace Horizon { namespace Keys { @@ -71,10 +73,12 @@ public: /*! Load a HorizonScript from the specified stream. * @param stream The stream to load from. * @param options Options to use for parsing, validation, and execution. + * @param name The name of the stream to use in diagnostic messages. * @return true if the Script could be loaded; false otherwise. */ static Script *load(std::istream &stream, - const ScriptOptions &options = 0); + const ScriptOptions &options = 0, + const std::string &name = "installfile"); /*! Determines if the HorizonScript is valid. */ bool validate() const; |