From ba93c7ef095e305b94a7efa77653c5a074fab33d Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Sun, 2 Nov 2008 14:29:46 +0000 Subject: [PATCH] Fixed x64 compilation problem cause of an int 3 asm instruction. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@216 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/irrXML/irrTypes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/irrXML/irrTypes.h b/code/irrXML/irrTypes.h index aa2254d1c..da7cf09bb 100644 --- a/code/irrXML/irrTypes.h +++ b/code/irrXML/irrTypes.h @@ -79,8 +79,13 @@ typedef unsigned short wchar_t; #endif // microsoft compiler //! define a break macro for debugging only in Win32 mode. +// WORKAROUND (ASSIMP): __asm int 3 not av. for x64 #if defined(WIN32) && defined(_MSC_VER) && defined(_DEBUG) +#if defined(_M_IX86) #define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_asm int 3} +#else +#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) +#endif #else #define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) #endif