Switch CHECK_WRONG_DATA macro so crashes/hangs are avoided
This commit is contained in:
parent
589fabd0b1
commit
5fd77d2518
|
@ -35,11 +35,8 @@
|
||||||
* Using this macro we can make sure that released binaries don't crash/hang but the problem is not hidden
|
* Using this macro we can make sure that released binaries don't crash/hang but the problem is not hidden
|
||||||
* in debug builds.
|
* in debug builds.
|
||||||
*/
|
*/
|
||||||
#ifdef NDEBUG
|
#define CHECK_WRONG_DATA(X) (X) // Release (don't crash/hang)
|
||||||
#define CHECK_WRONG_DATA(X) (X)
|
//#define CHECK_WRONG_DATA(X) (1) // Debug (crash/hang)
|
||||||
#else
|
|
||||||
#define CHECK_WRONG_DATA(X) (1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace tinyxml2 {
|
namespace tinyxml2 {
|
||||||
class XMLElement;
|
class XMLElement;
|
||||||
|
|
Loading…
Reference in New Issue