Fixed DACA2 CHECK_WRONG_DATA macro
This commit is contained in:
parent
35348fcf98
commit
9715164d0a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue