aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-14 10:14:27 +0000
committerDavid Robillard <d@drobilla.net>2011-05-14 10:14:27 +0000
commit6ca900cd7409cfea90294d274bf0a6c48a13a8dc (patch)
treee9a2c016d1a5f87ae86f608bb2d7777e2211294b /src/repl.cpp
parentea1c80ab4422d2811292cc7be651bd298f66b8cf (diff)
downloadresp-6ca900cd7409cfea90294d274bf0a6c48a13a8dc.tar.gz
resp-6ca900cd7409cfea90294d274bf0a6c48a13a8dc.tar.bz2
resp-6ca900cd7409cfea90294d274bf0a6c48a13a8dc.zip
Tidy.
git-svn-id: http://svn.drobilla.net/resp/trunk@424 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 25ae163..dd61f9f 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -169,11 +169,9 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
}
// Call main and print result
- if (!exprs.empty()) {
- CFunc f = cenv.engine()->getFn(cenv, "main");
- if (cenv.args.find("-S") == cenv.args.end())
- callPrintCollect(cenv, f, ast, retT, execute);
- }
+ if (!exprs.empty())
+ callPrintCollect(cenv, cenv.engine()->getFn(cenv, "main"),
+ ast, retT, execute);
} catch (Error& e) {
cenv.err << e.what() << endl;