MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_realloc

Function SDL_realloc

deps/SDL2/src/stdlib/SDL_malloc.c:5410–5423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5408}
5409
5410void *SDL_realloc(void *ptr, size_t size)
5411{
5412 void *mem;
5413
5414 if (!ptr && !size) {
5415 size = 1;
5416 }
5417
5418 mem = s_mem.realloc_func(ptr, size);
5419 if (mem && !ptr) {
5420 SDL_AtomicIncRef(&s_mem.num_allocations);
5421 }
5422 return mem;
5423}
5424
5425void SDL_free(void *ptr)
5426{

Callers 15

LAW_DecodeFunction · 0.85
EnsureStreamBufferSizeFunction · 0.85
UpdateAudioStreamFunction · 0.85
GL_HandleDebugMessageFunction · 0.85
D3D11_CreateBlendStateFunction · 0.85
SDL_setenvFunction · 0.85
SDL_getenvFunction · 0.85
SDL_iconv_stringFunction · 0.85
SDL_AddDollarGesture_oneFunction · 0.85
SDL_GestureAddTouchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected