mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Merge ff9f245cf3 into 42fc082b5e
This commit is contained in:
commit
6326731b1d
1 changed files with 4 additions and 1 deletions
|
|
@ -126,10 +126,13 @@ extern "C" {
|
|||
*/
|
||||
#define SDL_TriggerBreakpoint() TriggerABreakpointInAPlatformSpecificManner
|
||||
|
||||
#elif defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER >= 1310)
|
||||
#elif defined(_MSC_VER) && _MSC_VER >= 1310
|
||||
/* Don't include intrin.h here because it contains C++ code */
|
||||
extern void __cdecl __debugbreak(void);
|
||||
#define SDL_TriggerBreakpoint() __debugbreak()
|
||||
#elif defined(__MINGW32__)
|
||||
#include <intrin.h>
|
||||
#define SDL_TriggerBreakpoint() __debugbreak()
|
||||
#elif defined(_MSC_VER) && defined(_M_IX86)
|
||||
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
|
||||
#elif SDL_HAS_BUILTIN(__builtin_debugtrap)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue