summaryrefslogtreecommitdiff
path: root/i/marvin/src/interpreter/interpreter_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/interpreter/interpreter_parser.cc')
-rw-r--r--i/marvin/src/interpreter/interpreter_parser.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/i/marvin/src/interpreter/interpreter_parser.cc b/i/marvin/src/interpreter/interpreter_parser.cc
index 2a3f54b..f10e8ec 100644
--- a/i/marvin/src/interpreter/interpreter_parser.cc
+++ b/i/marvin/src/interpreter/interpreter_parser.cc
@@ -37,6 +37,7 @@ void
InterpreterParser::call (const std::string &id, AnyList &args)
{
interpreter_.call (id, args, dryrun_);
- interpreter_.call ("_postcall", AnyList (), dryrun_);
+ if (interpreter_.exists ("_postcall"))
+ interpreter_.call ("_postcall", AnyList (), dryrun_);
}