Improving homogeneity of DEBUG macro for improved portability with compilers other than Visual Studio

This commit is contained in:
Léo Terziman
2013-11-21 13:05:48 +01:00
parent 29c125e51d
commit 4e7b59be55
19 changed files with 27 additions and 27 deletions

View File

@@ -232,7 +232,7 @@ aiReturn Importer::RegisterLoader(BaseImporter* pImp)
for(std::set<std::string>::const_iterator it = st.begin(); it != st.end(); ++it) {
#ifdef _DEBUG
#ifdef ASSIMP_BUILD_DEBUG
if (IsExtensionSupported(*it)) {
DefaultLogger::get()->warn("The file extension " + *it + " is already in use");
}
@@ -558,7 +558,7 @@ void WriteLogOpening(const std::string& file)
<< "<unknown compiler>"
#endif
#ifndef NDEBUG
#ifdef ASSIMP_BUILD_DEBUG
<< " debug"
#endif
@@ -749,7 +749,7 @@ const aiScene* Importer::ApplyPostProcessing(unsigned int pFlags)
}
}
#endif // no validation
#ifdef _DEBUG
#ifdef ASSIMP_BUILD_DEBUG
if (pimpl->bExtraVerbose)
{
#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
@@ -783,7 +783,7 @@ const aiScene* Importer::ApplyPostProcessing(unsigned int pFlags)
if( !pimpl->mScene) {
break;
}
#ifdef _DEBUG
#ifdef ASSIMP_BUILD_DEBUG
#ifndef ASSIMP_BUILD_NO_VALIDATEDS_PROCESS
continue;