mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 10:57:40 +00:00
Don't assert on API parameters
This causes lots of spam in test automation and it's not clear it's useful to developers. If we need this level of validation, we should add a log category for it.
This commit is contained in:
parent
fed857787a
commit
6c4b4ee7a6
3 changed files with 0 additions and 6 deletions
|
@ -462,7 +462,6 @@ DeleteHIDDeviceWrapper(SDL_hid_device *device)
|
|||
}
|
||||
|
||||
#define CHECK_DEVICE_MAGIC(device, retval) \
|
||||
SDL_assert(device && device->magic == &device_magic); \
|
||||
if (!device || device->magic != &device_magic) { \
|
||||
SDL_SetError("Invalid device"); \
|
||||
return retval; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue