瀏覽代碼

- 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 年之前
父節點
當前提交
76a733e2f4
共有 3 個文件被更改,包括 2 次插入3 次删除
  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
 //!	\def	ai_assert
 //!	\brief	ASSIMP specific assertion test
 //!	\brief	ASSIMP specific assertion test
-#ifdef DEBUG  
+#ifdef _DEBUG  
 #  define	ai_assert(expression) if( !(expression)) Assimp::aiAssert( #expression, __LINE__, __FILE__);
 #  define	ai_assert(expression) if( !(expression)) Assimp::aiAssert( #expression, __LINE__, __FILE__);
 #else
 #else
 #  define	ai_assert(expression)
 #  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
 #	define AI_C_THREADSAFE
 #endif // !! ASSIMP_BUILD_SINGLETHREADED
 #endif // !! ASSIMP_BUILD_SINGLETHREADED
 
 
-#if (defined _DEBUG || defined DEBUG) // one of the two should be defined ..
+#ifdef _DEBUG 
 #	define ASSIMP_BUILD_DEBUG
 #	define ASSIMP_BUILD_DEBUG
 #endif
 #endif
 
 

+ 0 - 1
tools/assimp_view/Display.cpp

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