SDL_HAS_TARGET_ATTRIBS(3)
π SDL_HAS_TARGET_ATTRIBS π
okay bestie, so this is a page from the SDL3 FUNCTIONS manual, and it's all about a lil macro called SDL_HAS_TARGET_ATTRIBS. it's short, it's sweet, it's giving "blink and you'll miss it" energy, but we're gonna cover every single crumb. π
β¨ NAME β¨
SDL_HAS_TARGET_ATTRIBS β a macro to decide if the compiler supports __attribute__((target)). π§
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_intrin.h>
#define SDL_HAS_TARGET_ATTRIBS
like, that's it. that's the whole thing. iconic minimalism. π
π¦ DESCRIPTION π¦
so here's the tea β: even though SDL_HAS_TARGET_ATTRIBS is defined in SDL's public headers, it is generally not used directly by apps. like, it's sitting there in the open, but it's not for you, bestie. it's the backstage pass, not the main stage. π
apps should probably just use SDL_TARGETING directly, instead. that's the move. that's the whole point. periodt. π
β AVAILABILITY β
this macro is available since SDL 3.2.0. so if you're on anything older, no vibes for you, sorry. π
π SEE ALSO π
SDL_TARGETING(3)β the one you actually wanna be using, fr fr π«Ά
and that's the whole page, no cap. simple, short, slayed. π
Simple Directmedia Layer β SDL 3.4.18 β mwah, kisses, go read SDL_TARGETING(3) if you actually wanna do something πβ¨
π¦ 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