include: Added \threadsafety notes to about 60 more functions.
Reference Issue #7140.
This commit is contained in:
@@ -85,6 +85,8 @@ extern "C" {
|
||||
*
|
||||
* \param version the version number.
|
||||
*
|
||||
* \threadsafety It is safe to call this macro from any thread.
|
||||
*
|
||||
* \since This macro is available since SDL 3.2.0.
|
||||
*/
|
||||
#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)
|
||||
@@ -96,6 +98,8 @@ extern "C" {
|
||||
*
|
||||
* \param version the version number.
|
||||
*
|
||||
* \threadsafety It is safe to call this macro from any thread.
|
||||
*
|
||||
* \since This macro is available since SDL 3.2.0.
|
||||
*/
|
||||
#define SDL_VERSIONNUM_MINOR(version) (((version) / 1000) % 1000)
|
||||
@@ -107,6 +111,8 @@ extern "C" {
|
||||
*
|
||||
* \param version the version number.
|
||||
*
|
||||
* \threadsafety It is safe to call this macro from any thread.
|
||||
*
|
||||
* \since This macro is available since SDL 3.2.0.
|
||||
*/
|
||||
#define SDL_VERSIONNUM_MICRO(version) ((version) % 1000)
|
||||
@@ -114,6 +120,8 @@ extern "C" {
|
||||
/**
|
||||
* This is the version number macro for the current SDL version.
|
||||
*
|
||||
* \threadsafety It is safe to call this macro from any thread.
|
||||
*
|
||||
* \since This macro is available since SDL 3.2.0.
|
||||
*
|
||||
* \sa SDL_GetVersion
|
||||
@@ -124,6 +132,8 @@ extern "C" {
|
||||
/**
|
||||
* This macro will evaluate to true if compiled with SDL at least X.Y.Z.
|
||||
*
|
||||
* \threadsafety It is safe to call this macro from any thread.
|
||||
*
|
||||
* \since This macro is available since SDL 3.2.0.
|
||||
*/
|
||||
#define SDL_VERSION_ATLEAST(X, Y, Z) \
|
||||
@@ -141,6 +151,8 @@ extern "C" {
|
||||
*
|
||||
* \returns the version of the linked library.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
*
|
||||
* \since This function is available since SDL 3.2.0.
|
||||
*
|
||||
* \sa SDL_GetRevision
|
||||
@@ -168,6 +180,8 @@ extern SDL_DECLSPEC int SDLCALL SDL_GetVersion(void);
|
||||
* \returns an arbitrary string, uniquely identifying the exact revision of
|
||||
* the SDL library in use.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
*
|
||||
* \since This function is available since SDL 3.2.0.
|
||||
*
|
||||
* \sa SDL_GetVersion
|
||||
|
||||
Reference in New Issue
Block a user