mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-08 09:57:16 +02:00
Re-add SDL_assert() with non boolean ptr syntax (#8531)
This commit is contained in:
@@ -171,7 +171,7 @@ static void *SDLCALL SDLTest_TrackedRealloc(void *ptr, size_t size)
|
||||
{
|
||||
void *mem;
|
||||
|
||||
SDL_assert(!ptr || SDL_IsAllocationTracked(ptr));
|
||||
SDL_assert(ptr == NULL || SDL_IsAllocationTracked(ptr));
|
||||
mem = SDL_realloc_orig(ptr, size);
|
||||
if (mem && mem != ptr) {
|
||||
if (ptr) {
|
||||
|
||||
Reference in New Issue
Block a user