changeset 5011:d306007299ac

Use the portable intrinsic
author Sam Lantinga <slouken@libsdl.org>
date Mon, 17 Jan 2011 13:52:40 -0800
parents 377b7d9d24ee
children 2e282002bac3
files include/SDL_assert.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_assert.h	Mon Jan 17 13:42:24 2011 -0800
+++ b/include/SDL_assert.h	Mon Jan 17 13:52:40 2011 -0800
@@ -50,8 +50,9 @@
 assert can have unique static variables associated with it.
 */
 
-#if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64)))
-    #define SDL_TriggerBreakpoint() __asm { int 3 }
+#if defined(_MSC_VER)
+#include <intrin.h>
+    #define SDL_TriggerBreakpoint() __debugbreak()
 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
     #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
 #elif defined(HAVE_SIGNAL_H)