Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaJelic committed Oct 6, 2023
2 parents 5b2f844 + 59d3763 commit 6bbca1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/repl/repl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace {
struct Repl {
const std::string_view EXIT_TOKEN{"exit"};
bool verbose{}; // toggled on with '-v' and off with '-q'
bool is_running{true};

Expand All @@ -25,7 +26,7 @@ struct Repl {
std::getline(std::cin, text);
// run kalcy on input expression
if (!text.empty()) {
if (!run(text)) { return EXIT_FAILURE; }
if (!run(text)) { return EXIT_FAILURE; }
} else {
print_help();
}
Expand Down

0 comments on commit 6bbca1a

Please sign in to comment.