Try to limit Daca2WrongData output a little
This commit is contained in:
parent
9715164d0a
commit
0c6a551039
|
@ -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.
|
||||||
*/
|
*/
|
||||||
#ifdef DACA2
|
#ifdef DACA2
|
||||||
#define CHECK_WRONG_DATA(COND, TOK) ({ if(!(COND)) reportError(TOK,Severity::error,"DacaWrongData","Wrong data detected"); (COND);})
|
#define CHECK_WRONG_DATA(COND, TOK) ({ if(!(COND)) reportError(nullptr,Severity::error,"DacaWrongData","Wrong data detected, " #COND); (COND);})
|
||||||
#else
|
#else
|
||||||
#define CHECK_WRONG_DATA(COND, TOK) (COND)
|
#define CHECK_WRONG_DATA(COND, TOK) (COND)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue