summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils/catch.cpp (renamed from src/Utils/catchInputInt.cpp)11
-rw-r--r--src/Utils/catchReturn.cpp11
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