summaryrefslogtreecommitdiff
path: root/Tools/javascript/js_shell.h
diff options
context:
space:
mode:
authorOliver Buchtala <oliver.buchtala@googlemail.com>2014-02-26 22:46:24 +0100
committerOliver Buchtala <oliver.buchtala@googlemail.com>2014-02-26 22:46:24 +0100
commit424e3f47123f8a7746d12d02204b896e55b8444d (patch)
treed97f9d114e089544346eaa4d09419d6d0236f18d /Tools/javascript/js_shell.h
parent15f12d9b59b9e8522853f010f9d443164774a6a6 (diff)
downloadswig-424e3f47123f8a7746d12d02204b896e55b8444d.tar.gz
Fix custom javascript interpreter configuration for OSX.
Diffstat (limited to 'Tools/javascript/js_shell.h')
-rw-r--r--Tools/javascript/js_shell.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/javascript/js_shell.h b/Tools/javascript/js_shell.h
index 84a8534d6..1e2466b96 100644
--- a/Tools/javascript/js_shell.h
+++ b/Tools/javascript/js_shell.h
@@ -29,6 +29,10 @@ public:
virtual bool RunShell();
+ void setModulePath(const std::vector<std::string>& modulePath) {
+ module_path = modulePath;
+ }
+
protected:
virtual bool InitializeEngine() = 0;
@@ -42,6 +46,7 @@ protected:
protected:
std::vector<HANDLE> loaded_modules;
+ std::vector<std::string> module_path;
};