diff options
Diffstat (limited to 'src/Utils/catch.cpp')
| -rw-r--r-- | src/Utils/catch.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/Utils/catch.cpp b/src/Utils/catch.cpp deleted file mode 100644 index 37ebefe..0000000 --- a/src/Utils/catch.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "Utils.hpp" - -#include <iostream> -#include <ostream> - -int Utils::catchInputInt(int* input){ - std::cin >> input; - - if (std::cin.fail()) { - std::cout << "error: Input failed" << std::endl; - return 1; - } - - return 0; -} - -int Utils::catchReturn(int renum){ - if (renum != 0) { - std::cout << "Received error signal, sending further" << std::endl; - } - return 0; -} |
