Fixed DACA2 CHECK_WRONG_DATA macro

This commit is contained in:
Daniel Marjamäki 2017-06-04 15:50:27 +02:00
parent 35348fcf98
commit 9715164d0a
1 changed files with 2 additions and 2 deletions

View File

@ -38,9 +38,9 @@
* 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(X, TOK) ({ if(X) reportError(TOK,Severity::error,"DacaWrongData","Wrong data detected"); X;}) #define CHECK_WRONG_DATA(COND, TOK) ({ if(!(COND)) reportError(TOK,Severity::error,"DacaWrongData","Wrong data detected"); (COND);})
#else #else
#define CHECK_WRONG_DATA(X, TOK) (X) #define CHECK_WRONG_DATA(COND, TOK) (COND)
#endif #endif
namespace tinyxml2 { namespace tinyxml2 {