diff options
author | David Robillard <d@drobilla.net> | 2011-05-14 10:14:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-14 10:14:27 +0000 |
commit | 6ca900cd7409cfea90294d274bf0a6c48a13a8dc (patch) | |
tree | e9a2c016d1a5f87ae86f608bb2d7777e2211294b /src | |
parent | ea1c80ab4422d2811292cc7be651bd298f66b8cf (diff) | |
download | resp-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')
-rw-r--r-- | src/repl.cpp | 8 |
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; |