Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Matula <peter.matula@avast.com>2018-01-09 14:52:26 +0300
committerPeter Matula <peter.matula@avast.com>2018-01-09 14:52:26 +0300
commit50689919b77bdca6311395d8ef0089e5916498d7 (patch)
treef4e3f951d274ae6bb8c40bf62613ba591b544f87 /xmltest.cpp
parent703f91e6b8135298f70dc9b3efe38f713f8dfb22 (diff)
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.
Diffstat (limited to 'xmltest.cpp')
-rw-r--r--xmltest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmltest.cpp b/xmltest.cpp
index a647e63..2e27594 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -292,7 +292,7 @@ bool example_4()
int main( int argc, const char ** argv )
{
- #if defined( _MSC_VER ) && defined( DEBUG )
+ #if defined( _MSC_VER ) && defined( TINYXML2_DEBUG )
_CrtMemCheckpoint( &startMemState );
// Enable MS Visual C++ debug heap memory leaks dump on exit
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
@@ -1861,7 +1861,7 @@ int main( int argc, const char ** argv )
}
{
- // If this doesn't assert in DEBUG, all is well.
+ // If this doesn't assert in TINYXML2_DEBUG, all is well.
tinyxml2::XMLDocument doc;
tinyxml2::XMLElement *pRoot = doc.NewElement("Root");
doc.DeleteNode(pRoot);
@@ -1876,7 +1876,7 @@ int main( int argc, const char ** argv )
}
{
- // If this doesn't assert in DEBUG, all is well.
+ // If this doesn't assert in TINYXML2_DEBUG, all is well.
XMLDocument doc;
XMLElement* unlinkedRoot = doc.NewElement( "Root" );
XMLElement* linkedRoot = doc.NewElement( "Root" );
@@ -1886,7 +1886,7 @@ int main( int argc, const char ** argv )
}
{
- // Should not assert in DEBUG
+ // Should not assert in TINYXML2_DEBUG
XMLPrinter printer;
}
@@ -2266,7 +2266,7 @@ int main( int argc, const char ** argv )
delete[] mem;
static const char* note =
-#ifdef DEBUG
+#ifdef TINYXML2_DEBUG
"DEBUG";
#else
"Release";
@@ -2280,7 +2280,7 @@ int main( int argc, const char ** argv )
printf("\nParsing dream.xml (%s): %.3f milli-seconds\n", note, duration);
}
-#if defined( _MSC_VER ) && defined( DEBUG )
+#if defined( _MSC_VER ) && defined( TINYXML2_DEBUG )
{
_CrtMemCheckpoint( &endMemState );