summaryrefslogtreecommitdiff
path: root/hscript/script.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-26 00:12:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-26 00:12:13 -0500
commitdb86a77b1d79824d2ee42d617f9a04bf8c3f7210 (patch)
treeb5814b658edad1a3691bb1b798d400e7f2e5a0dc /hscript/script.hh
parentcedb2d224da81edcca1191e7812713e308174889 (diff)
downloadhorizon-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.hh6
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;