Use new parameter validation macro

This commit is contained in:
Sam Lantinga committed 2025-09-18 20:58:32 -07:00
1 parent ee1c90a358
commit 25b2d2c821
60 files changed
+1113 -1133

No files matched your search

+2 -2
View File
@@ -41,7 +41,7 @@ void *SDL_GetTLS(SDL_TLSID *id)
SDL_TLSData *storage;
int storage_index;
if (id == NULL) {
CHECK_PARAM(id == NULL) {
SDL_InvalidParamError("id");
return NULL;
}
@@ -59,7 +59,7 @@ bool SDL_SetTLS(SDL_TLSID *id, const void *value, SDL_TLSDestructorCallback dest
SDL_TLSData *storage;
int storage_index;
if (id == NULL) {
CHECK_PARAM(id == NULL) {
return SDL_InvalidParamError("id");
}