summaryrefslogtreecommitdiff
path: root/i/marvin/src/interpreter/interpreter.hh
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/interpreter/interpreter.hh')
-rw-r--r--i/marvin/src/interpreter/interpreter.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/i/marvin/src/interpreter/interpreter.hh b/i/marvin/src/interpreter/interpreter.hh
index 729f321..169e0f2 100644
--- a/i/marvin/src/interpreter/interpreter.hh
+++ b/i/marvin/src/interpreter/interpreter.hh
@@ -44,7 +44,7 @@ class Interpreter
{ }
/// Called on function invocation, getting the argument list and
/// returning true on success.
- virtual bool operator() (const Args &) = 0;
+ virtual void operator() (const Args &, bool dryrun) = 0;
};
private:
/// Func class construction helper.
@@ -61,7 +61,8 @@ class Interpreter
/// Add a function, Interpreter owns f.
void add (const std::string &s, Func *f);
/// Call a function by name.
- bool call (const std::string &s, const Args &a) const;
+ void call (const std::string &s, const Args &a,
+ bool dryrun = false) const;
/// Take all the template sophistications out of the programmer hands.
template<class T, typename F>
static Func *memFunc (T &i, F f);