include: Improve _CrtDbgBreak macro.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b7ce75e989
commit
b00a6e6e30
|
@ -70,7 +70,9 @@ typedef struct _CrtMemState
|
|||
#include <assert.h>
|
||||
#define _ASSERT(expr) assert(expr)
|
||||
#define _ASSERTE(expr) assert(expr)
|
||||
#if defined(__GNUC__) && defined(__i386__)
|
||||
#if defined(_MSC_VER)
|
||||
#define _CrtDbgBreak() __debugbreak()
|
||||
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
#define _CrtDbgBreak() __asm__ ("\tint $0x3\n")
|
||||
#else
|
||||
#define _CrtDbgBreak() ((void)0)
|
||||
|
|
Loading…
Reference in New Issue