SDL_RETURN_CAPABILITY(3)

πŸ’– SDL_RETURN_CAPABILITY(3) πŸ’–

okay so bestie, welcome to the SDL_RETURN_CAPABILITY(3) page from the SDL3 FUNCTIONS manual. this macro is giving "wrapper around Clang thread safety analysis annotations" and honestly? iconic. no notes. πŸ’…


🌸 NAME 🌸

SDL_RETURN_CAPABILITY β€” a wrapper around Clang thread safety analysis annotations. that's the whole name, fr fr.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_mutex.h>

#define SDL_RETURN_CAPABILITY(x) \
  SDL_THREAD_ANNOTATION_ATTRIBUTE__(lock_returned(x))

πŸ’– DESCRIPTION πŸ’–

the description is literally just: Please see https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h. go read that Clang thread safety analysis tea, bestie, it's all there πŸ«–βœ¨

🌈 AVAILABILITY 🌈

this macro is available since SDL 3.2.0. periodt.


mwah πŸ’‹ β€” from the Simple Directmedia Layer besties, SDL 3.4.18 edition. stay slaying πŸŽ€

πŸ“¦ where this page comes from