Re-add SDL_assert() with non boolean ptr syntax (#8531)
This commit is contained in:
1 parent
c29df1699e
commit
f3419d8c04
37 files changed
+73
-73
No files matched your search
@@ -70,7 +70,7 @@ static SDL_hapticlist_item *HapticByOrder(int index)
|
||||
return NULL;
|
||||
}
|
||||
while (index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--index;
|
||||
item = item->next;
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ static SDL_hapticlist_item *HapticByDevIndex(int device_index)
|
||||
}
|
||||
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--device_index;
|
||||
item = item->next;
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ static SDL_hapticlist_item *HapticByDevIndex(int device_index)
|
||||
}
|
||||
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--device_index;
|
||||
item = item->next;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ static SDL_hapticlist_item *HapticByDevIndex(int device_index)
|
||||
}
|
||||
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
--device_index;
|
||||
item = item->next;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user