Add logging macro.
This commit is contained in:
parent
593352bc45
commit
e88962753c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue