SDL_HINT_NO_SIGNAL_HANDLERS(3)
π SDL_HINT_NO_SIGNAL_HANDLERS π
okay bestie, gather round, because this is the SDL3 FUNCTIONS girlie SDL_HINT_NO_SIGNAL_HANDLERS and she is here to tell SDL to not catch the SIGINT or SIGTERM signals on POSIX platforms. that's the whole vibe. that's the name. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_NO_SIGNAL_HANDLERS "SDL_NO_SIGNAL_HANDLERS"
like yes, it's a #define, it's a string, it's iconic, it's literally the hint name in quotes. no cap. π
πΈ DESCRIPTION πΈ
so the variable can be set to the following values, and there are exactly two of them, and I need you to pick one:
"0"β SDL will install aSIGINTandSIGTERMhandler, and when it catches a signal, convert it into anSDL_EVENT_QUITevent. (this is the default, bestie, this is what you get if you say nothing)"1"β SDL will not install a signal handler at all. nothing. zero. no handlers. she's off duty. π
π«Ά heads up: this hint should be set before SDL is initialized. like, before. not during. not after. before. the vibe check happens at init time, iykyk.
π¦ AVAILABILITY π¦
this hint is available since SDL 3.2.0. so if you're on something older... girl. π
and that's the page!! every flag, every value, every default, all present and accounted for, no details left behind, we ate and left no crumbs π
this little beauty comes to you from Simple Directmedia Layer, version SDL 3.4.18, and yes that's the whole flex. stay signal-safe out there, mwah πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms