aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-31 02:57:07 +0000
committerDavid Robillard <d@drobilla.net>2010-12-31 02:57:07 +0000
commit3b0975009a400cc41e9d975c6b81ab5965bbb0fa (patch)
treeb7f96dc55523b487d1e377810d9391c37102ae5d
parenta21170bfe840ec763db261ec0ba3b5ed6b5cea3e (diff)
downloadresp-3b0975009a400cc41e9d975c6b81ab5965bbb0fa.tar.gz
resp-3b0975009a400cc41e9d975c6b81ab5965bbb0fa.tar.bz2
resp-3b0975009a400cc41e9d975c6b81ab5965bbb0fa.zip
Don't execute code if -S is given.
git-svn-id: http://svn.drobilla.net/resp/resp@387 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r--src/repl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 6c9b3cf..204e2ab 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -158,7 +158,8 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
cenv.engine()->finishFn(cenv, f, val, type);
// Call and print result
- callPrintCollect(cenv, f, ast, type, execute);
+ if (cenv.args.find("-S") == cenv.args.end())
+ callPrintCollect(cenv, f, ast, type, execute);
}
if (cenv.args.find("-S") != cenv.args.end()) {