Forráskód Böngészése

- fix _DEBUG/DEBUG inconsistencies in favour of _DEBUG. Thanks to Carsten Fuchs to point it out!

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@869 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 15 éve
szülő
commit
76a733e2f4
3 módosított fájl, 2 hozzáadás és 3 törlés
  1. 1 1
      include/aiAssert.h
  2. 1 1
      include/aiDefines.h
  3. 0 1
      tools/assimp_view/Display.cpp

+ 1 - 1
include/aiAssert.h

@@ -19,7 +19,7 @@ AI_WONT_RETURN void aiAssert(const std::string &message, unsigned int uiLine, co
 
 //!	\def	ai_assert
 //!	\brief	ASSIMP specific assertion test
-#ifdef DEBUG  
+#ifdef _DEBUG  
 #  define	ai_assert(expression) if( !(expression)) Assimp::aiAssert( #expression, __LINE__, __FILE__);
 #else
 #  define	ai_assert(expression)

+ 1 - 1
include/aiDefines.h

@@ -214,7 +214,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #	define AI_C_THREADSAFE
 #endif // !! ASSIMP_BUILD_SINGLETHREADED
 
-#if (defined _DEBUG || defined DEBUG) // one of the two should be defined ..
+#ifdef _DEBUG 
 #	define ASSIMP_BUILD_DEBUG
 #endif
 

+ 0 - 1
tools/assimp_view/Display.cpp

@@ -397,7 +397,6 @@ int CDisplay::AddTextureToDisplayList(unsigned int iType,
 	unsigned int iMesh		/*= 0*/)
 {
 	ai_assert(NULL != szPath);
-	ai_assert(NULL != pcMat);
 
 	char chTemp[512];
 	char chTempEmb[256];