From 6f2db1a31261119c3c7e6bad1a8030d07f76a718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 2 Apr 2017 17:23:30 +0200 Subject: [PATCH] CHECK_WRONG_DATA: restore debug macro so crashes are seen. --- lib/check.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/check.h b/lib/check.h index 082f63c1b..c6e6a0d52 100644 --- a/lib/check.h +++ b/lib/check.h @@ -35,7 +35,11 @@ * Using this macro we can make sure that released binaries don't crash/hang but the problem is not hidden * in debug builds. */ +#ifdef NDEBUG #define CHECK_WRONG_DATA(X) (X) +#else +#define CHECK_WRONG_DATA(X) (1) +#endif namespace tinyxml2 { class XMLElement;