Skip to content

Commit

Permalink
Leave SDL_TriggerBreakpoint undefined on unknown platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jan 11, 2025
1 parent 9a7cfbc commit d42b4ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/SDL3/SDL_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ extern "C" {
*
* If the program is not running under a debugger, SDL_TriggerBreakpoint will
* likely terminate the app, possibly without warning. If the current platform
* isn't supported (SDL doesn't know how to trigger a breakpoint), this macro
* does nothing.
* isn't supported, this macro is left undefined.
*
* \threadsafety It is safe to call this macro from any thread.
*
Expand Down Expand Up @@ -154,8 +153,7 @@ extern "C" {
#include <signal.h>
#define SDL_TriggerBreakpoint() raise(SIGTRAP)
#else
/* How do we trigger breakpoints on this platform? */
#define SDL_TriggerBreakpoint()
/* SDL_TriggerBreakpoint is intentionally left undefined on unknown platforms. */
#endif

#ifdef SDL_WIKI_DOCUMENTATION_SECTION
Expand Down

0 comments on commit d42b4ed

Please sign in to comment.