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 a SIGINT and SIGTERM handler, and when it catches a signal, convert it into an SDL_EVENT_QUIT event. (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