diff options
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; |