mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 07:29:09 +00:00
add a fallback SDL_TriggerBreakpoint() for MSVC after commit ebaa30d3
.
This commit is contained in:
parent
d14c93c4b1
commit
61f13b94d1
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ extern "C" {
|
|||
/* Don't include intrin.h here because it contains C++ code */
|
||||
extern void __cdecl __debugbreak(void);
|
||||
#define SDL_TriggerBreakpoint() __debugbreak()
|
||||
#elif defined(_MSC_VER) && defined(_M_IX86)
|
||||
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
|
||||
#elif defined(ANDROID)
|
||||
#include <assert.h>
|
||||
#define SDL_TriggerBreakpoint() assert(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue