SDL_REQUIRES(3)

🌸 NAME 🌸

okay so bestie, welcome to SDL_REQUIRES(3) β€” that's the page name, and it lives in the SDL3 FUNCTIONS manual, periodt. πŸ’…

SDL_REQUIRES is literally just a wrapper around Clang thread safety analysis annotations. that's the whole vibe. no cap. ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_mutex.h>

#define SDL_REQUIRES(x) \
  SDL_THREAD_ANNOTATION_ATTRIBUTE__(requires_capability(x))

πŸ’– DESCRIPTION πŸ’–

so like, the actual deep lore? pls see https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h β€” that's where the real explanation is at, bestie. go read it, it's giving "mutex h" section energy. πŸ¦‹


🌈 AVAILABILITY 🌈

this macro has been available since SDL 3.2.0, so if you're on anything older… not me being dramatic but you're lowkey missing out 😭. it's been here since SDL 3.2.0, fr fr. πŸ’œ


mwah πŸ’‹ this whole page came from <strong>Simple Directmedia Layer</strong>, version <strong>SDL 3.4.18</strong> β€” that's the source and the version, and yeah, that's the sign-off. stay slaying, bestie 🫢✨

πŸ“¦ where this page comes from