Leave SDL_TriggerBreakpoint undefined on unknown platforms

This commit is contained in:
Anonymous Maarten 2025-01-11 17:04:06 +01:00 committed by Anonymous Maarten
parent 9a7cfbc2d0
commit d42b4ed961

View file

@ -118,8 +118,7 @@ extern "C" {
* *
* If the program is not running under a debugger, SDL_TriggerBreakpoint will * If the program is not running under a debugger, SDL_TriggerBreakpoint will
* likely terminate the app, possibly without warning. If the current platform * 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 * isn't supported, this macro is left undefined.
* does nothing.
* *
* \threadsafety It is safe to call this macro from any thread. * \threadsafety It is safe to call this macro from any thread.
* *
@ -154,8 +153,7 @@ extern "C" {
#include <signal.h> #include <signal.h>
#define SDL_TriggerBreakpoint() raise(SIGTRAP) #define SDL_TriggerBreakpoint() raise(SIGTRAP)
#else #else
/* How do we trigger breakpoints on this platform? */ /* SDL_TriggerBreakpoint is intentionally left undefined on unknown platforms. */
#define SDL_TriggerBreakpoint()
#endif #endif
#ifdef SDL_WIKI_DOCUMENTATION_SECTION #ifdef SDL_WIKI_DOCUMENTATION_SECTION