diff --git a/rotation.cpp b/rotation.cpp index 7fefb59..0a169f5 100644 --- a/rotation.cpp +++ b/rotation.cpp @@ -17,6 +17,8 @@ using namespace std; +#define LOG cout << __FUNCTION__ << ": " << __LINE__ << " | " +#define ERRLOG cerr << __FUNCTION__ << ": " << __LINE__ << " | " // @@ -936,8 +938,8 @@ int main(int argc, char* argv[]) if (!check_90(argv[1])) { - cerr << __LINE__ << " | 90 degrees check failed" << endl << endl; -// return 1; + ERRLOG << "90 degrees check failed" << endl << endl; + return 1; } }