diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-20 13:17:16 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | 78f5d8cf644383adf20933ad64c160c07c2c54fb (patch) | |
tree | 2a348d90f8f150665c379bf2f3741731999dd679 /src/commands/quit.cpp | |
parent | b6061eff99907495de282f611e8389e6468a1fb0 (diff) |
refactor: improve input configuring structure
Diffstat (limited to 'src/commands/quit.cpp')
-rw-r--r-- | src/commands/quit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commands/quit.cpp b/src/commands/quit.cpp new file mode 100644 index 0000000..c2a68e7 --- /dev/null +++ b/src/commands/quit.cpp @@ -0,0 +1,8 @@ +#include "quit.hpp" + +#include <cstdlib> + +void QuitCommand::execute() noexcept +{ + exit(EXIT_SUCCESS); +} |