SDL_HAS_TARGET_ATTRIBS(3)

πŸ“¦
version 3.4.18 Β· 5 versions
, in fedora 43, fedora 44

πŸ’… 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 🌈


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