Commit 68afae13 authored by Sam Lantinga's avatar Sam Lantinga

Use the portable intrinsic

parent 2bd8b295
...@@ -50,8 +50,9 @@ on the assertion line and not in some random guts of SDL, and so each ...@@ -50,8 +50,9 @@ on the assertion line and not in some random guts of SDL, and so each
assert can have unique static variables associated with it. assert can have unique static variables associated with it.
*/ */
#if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64))) #if defined(_MSC_VER)
#define SDL_TriggerBreakpoint() __asm { int 3 } #include <intrin.h>
#define SDL_TriggerBreakpoint() __debugbreak()
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__))) #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
#elif defined(HAVE_SIGNAL_H) #elif defined(HAVE_SIGNAL_H)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment