Add logging macro.

master
Fabien Freling 2014-08-06 22:23:15 +02:00
parent 593352bc45
commit e88962753c
1 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@
using namespace std; 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])) if (!check_90(argv[1]))
{ {
cerr << __LINE__ << " | 90 degrees check failed" << endl << endl; ERRLOG << "90 degrees check failed" << endl << endl;
// return 1; return 1;
} }
} }