Re-add SDL_assert() with non boolean ptr syntax (#8531)
This commit is contained in:
parent
c29df1699e
commit
f3419d8c04
37 changed files with 73 additions and 73 deletions
|
@ -997,7 +997,7 @@ static SDL_joylist_item *JoystickByDevIndex(int device_index)
|
|||
|
||||
item = SDL_joylist;
|
||||
while (device_index > 0) {
|
||||
SDL_assert(item);
|
||||
SDL_assert(item != NULL);
|
||||
device_index--;
|
||||
item = item->next;
|
||||
}
|
||||
|
@ -1504,8 +1504,8 @@ static int LINUX_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
|||
return -1; /* SDL_SetError will already have been called */
|
||||
}
|
||||
|
||||
SDL_assert(!item->hwdata);
|
||||
SDL_assert(!item_sensor || !item_sensor->hwdata);
|
||||
SDL_assert(item->hwdata == NULL);
|
||||
SDL_assert(!item_sensor || item_sensor->hwdata == NULL);
|
||||
item->hwdata = joystick->hwdata;
|
||||
if (item_sensor) {
|
||||
item_sensor->hwdata = joystick->hwdata;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue