diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-27 19:19:30 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-01-27 19:19:30 +0100 |
| commit | f34e07b4962f65362afa5ca98759e87929d964bc (patch) | |
| tree | d3df203e017542634f39962c052bdf18f7d07617 /src | |
| parent | 4d065c1024ef88217e3de9d9cc18f20be1821c54 (diff) | |
file node
Diffstat (limited to 'src')
| -rw-r--r-- | src/Utils/catch.cpp (renamed from src/Utils/catchInputInt.cpp) | 11 | ||||
| -rw-r--r-- | src/Utils/catchReturn.cpp | 11 |
2 files changed, 9 insertions, 13 deletions
diff --git a/src/Utils/catchInputInt.cpp b/src/Utils/catch.cpp index da99833..37ebefe 100644 --- a/src/Utils/catchInputInt.cpp +++ b/src/Utils/catch.cpp @@ -1,7 +1,7 @@ #include "Utils.hpp" -#include <cstdio> #include <iostream> +#include <ostream> int Utils::catchInputInt(int* input){ std::cin >> input; @@ -12,4 +12,11 @@ int Utils::catchInputInt(int* input){ } return 0; -}
\ No newline at end of file +} + +int Utils::catchReturn(int renum){ + if (renum != 0) { + std::cout << "Received error signal, sending further" << std::endl; + } + return 0; +} diff --git a/src/Utils/catchReturn.cpp b/src/Utils/catchReturn.cpp deleted file mode 100644 index c3d6722..0000000 --- a/src/Utils/catchReturn.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "Utils.hpp" - -#include <iostream> -#include <ostream> - -int Utils::catchReturn(int renum){ - if (renum != 0) { - std::cout << "Received error signal, sending further" << std::endl; - } - return 0; -}
\ No newline at end of file |
