Switch CHECK_WRONG_DATA macro so crashes/hangs are avoided

This commit is contained in:
Daniel Marjamäki 2017-04-28 10:48:41 +02:00
parent 589fabd0b1
commit 5fd77d2518
1 changed files with 2 additions and 5 deletions

View File

@ -35,11 +35,8 @@
* 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
#define CHECK_WRONG_DATA(X) (X) // Release (don't crash/hang)
//#define CHECK_WRONG_DATA(X) (1) // Debug (crash/hang)
namespace tinyxml2 {
class XMLElement;