https://github.com/libsdl-org/SDL/commit/d42b4ed9611a5a6a96d7f9a3767c4a2bede62144
From d42b4ed9611a5a6a96d7f9a3767c4a2bede62144 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 11 Jan 2025 17:04:06 +0100
Subject: [PATCH] Leave SDL_TriggerBreakpoint undefined on unknown platforms
---
include/SDL3/SDL_assert.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/include/SDL3/SDL_assert.h b/include/SDL3/SDL_assert.h
index e6860ce32a0d2..c7cb19676ab6a 100644
--- a/include/SDL3/SDL_assert.h
+++ b/include/SDL3/SDL_assert.h
@@ -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.
*
@@ -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