Use new parameter validation macro

This commit is contained in:
Sam Lantinga
2025-09-16 21:51:03 -07:00
parent ee1c90a358
commit 25b2d2c821
60 changed files with 1113 additions and 1133 deletions

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");
}