SDL_Unsupported(3)
π SDL_Unsupported(3) π
okay bestie, gather round, because this is the SDL_Unsupported manual page and it's literally the easiest slay in the whole SDL3 FUNCTIONS lineup π«Ά
It's a macro β yes, a macro β whose whole entire job is to standardize error reporting when somebody tries an operation that just... isn't supported. No cap. π
β¨ NAME β¨
SDL_Unsupported β a macro to standardize error reporting on unsupported operations.
Like, that's it. That's the whole vibe. It shows up, it says "nope, not supported," and it does it consistently every single time. Iconic behavior fr fr. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_error.h>
#define SDL_Unsupported() SDL_SetError("That operation is not supported")
Look at her. One line. No arguments. No return value. Just pure, unfiltered "this operation is not supported" energy. π
π¦ DESCRIPTION π¦
So here's the tea: this macro simply calls SDL_SetError() with a standardized error string.
Why? For convenience, for consistency, and for clarity. That's the trio. That's the main character energy. β¨
Instead of every single place in your codebase inventing its own little "uhhh this isn't supported sorry" message, you just hit SDL_Unsupported() and boom β the error string is always the exact same, and everyone reading your logs knows exactly what happened. Obsessed. ππ
π§ THREAD SAFETY π§
It is safe to call this macro from any thread.
Any thread. All the threads. The threads are thriving, and this macro is not about to start drama between them. π
β AVAILABILITY β
This macro is available since SDL 3.2.0.
So if you're on anything older than that, bestie... it's giving "not supported" in the most ironic way possible. π (But also, the version you're reading about right now is newer than that, so you're chilling.) π
periodt. That's the whole page. Go forth and report your unsupported operations with consistency and grace. π π«Ά
Simple Directmedia Layer β SDL 3.4.18 β SDL_Unsupported(3) πβ¨ππ¦πΈ
π¦ 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