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
- 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