daca2: change output for DacaWrongData. Show location. And use severity 'debug'
This commit is contained in:
parent
66a488586e
commit
62c22a8e06
|
@ -38,7 +38,7 @@
|
|||
* Use CHECK_WRONG_DATA in checkers when you check for wrong data.
|
||||
*/
|
||||
#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
|
||||
#define CHECK_WRONG_DATA(COND, TOK) (COND)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue