Skip to content

Commit

Permalink
add a fallback SDL_TriggerBreakpoint() for MSVC after commit ebaa30d.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jan 10, 2025
1 parent d14c93c commit 61f13b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/SDL3/SDL_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61f13b9

Please sign in to comment.