summaryrefslogtreecommitdiff
path: root/i/marvin/src/interpreter/interpreter.hh
diff options
context:
space:
mode:
authorschodet2006-04-02 17:23:53 +0000
committerschodet2006-04-02 17:23:53 +0000
commitc425ae7693b604c190d3904e7ef965f93d34edee (patch)
tree4ce709554b2c0d2e872a0da6c903de77765ee02c /i/marvin/src/interpreter/interpreter.hh
parentc927f32a735e1600cf6b50a315d204963cf5877e (diff)
Support des fonctions qui ne retournent pas de bool.
Support du dry run.
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);