sdlTlsGet function
Get the current thread's value associated with a thread local storage ID.
\param id the thread local storage ID \returns the value associated with the ID for the current thread or NULL if no value has been set; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_TLSCreate \sa SDL_TLSSet
extern DECLSPEC void * SDLCALL SDL_TLSGet(SDL_TLSID id)
Implementation
Pointer<NativeType> sdlTlsGet(int id) {
final sdlTlsGetLookupFunction = libSdl2.lookupFunction<
Pointer<NativeType> Function(Uint32 id),
Pointer<NativeType> Function(int id)>('SDL_TLSGet');
return sdlTlsGetLookupFunction(id);
}