rename DEBUG define to TINYXML2_DEBUG

The original name is to general. This prevents possible name collisions with other defines, enums, etc. from projects where tinyxml2 is used.
This commit is contained in:
Peter Matula
2018-01-09 12:52:26 +01:00
parent 703f91e6b8
commit 50689919b7
6 changed files with 16 additions and 16 deletions

View File

@@ -2037,7 +2037,7 @@ void XMLDocument::Clear()
DeleteNode(_unlinked[0]); // Will remove from _unlinked as part of delete.
}
#ifdef DEBUG
#ifdef TINYXML2_DEBUG
const bool hadError = Error();
#endif
ClearError();
@@ -2052,7 +2052,7 @@ void XMLDocument::Clear()
_attributePool.Trace( "attribute" );
#endif
#ifdef DEBUG
#ifdef TINYXML2_DEBUG
if ( !hadError ) {
TIXMLASSERT( _elementPool.CurrentAllocs() == _elementPool.Untracked() );
TIXMLASSERT( _attributePool.CurrentAllocs() == _attributePool.Untracked() );