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.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/i/marvin/src/interpreter/interpreter.hh b/i/marvin/src/interpreter/interpreter.hh
index 1f6e688..3341ea1 100644
--- a/i/marvin/src/interpreter/interpreter.hh
+++ b/i/marvin/src/interpreter/interpreter.hh
@@ -69,6 +69,8 @@ class Interpreter
void add (const std::string &s, Func *f, const std::string &desc);
/// Add a function without description, Interpreter owns f.
void add (const std::string &s, Func *f);
+ /// Test if a function is defined.
+ bool exists (const std::string &s) const;
/// Call a function by name.
void call (const std::string &s, const Args &a,
bool dryrun = false) const;