upd: restructrued to avoid useless concurrency and simplify the code
This commit is contained in:
@ -1 +1,14 @@
|
||||
#include "engine.h"
|
||||
#include "engine.h"
|
||||
|
||||
#include <stack>
|
||||
#include <string>
|
||||
|
||||
#include "bs-utility.h"
|
||||
std::vector<std::string> BookStoreEngineClass::Execute(
|
||||
const std::string &cmd, std::stack<std::string> &login_stack) {
|
||||
if (cmd == "quit" || cmd == "exit") {
|
||||
BookStore_ZYM::shut_down = true;
|
||||
return std::vector<std::string>();
|
||||
}
|
||||
return std::vector<std::string>({cmd});
|
||||
}
|
Reference in New Issue
Block a user