Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Use the portable intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 17, 2011
1 parent 1abdecd commit d5c68ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/SDL_assert.h
Expand Up @@ -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.
*/

#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)
Expand Down

0 comments on commit d5c68ad

Please sign in to comment.