daca2: change output for DacaWrongData. Show location. And use severity 'debug'

This commit is contained in:
Daniel Marjamäki 2017-06-04 19:46:20 +02:00
parent 66a488586e
commit 62c22a8e06
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
* Use CHECK_WRONG_DATA in checkers when you check for wrong data. * Use CHECK_WRONG_DATA in checkers when you check for wrong data.
*/ */
#if defined(DACA2) || defined(UNSTABLE) #if defined(DACA2) || defined(UNSTABLE)
#define CHECK_WRONG_DATA(COND, TOK) ({ if(!(COND)) reportError(nullptr,Severity::error,"DacaWrongData","Wrong data detected, " #COND); (COND);}) #define CHECK_WRONG_DATA(COND, TOK) ({ if(!(COND)) reportError(TOK,Severity::debug,"DacaWrongData","Wrong data detected, " #COND); (COND);})
#else #else
#define CHECK_WRONG_DATA(COND, TOK) (COND) #define CHECK_WRONG_DATA(COND, TOK) (COND)
#endif #endif