MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / SDL_realloc

Function SDL_realloc

Engine/lib/sdl/src/stdlib/SDL_malloc.c:5411–5424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

AddControllerFunction · 0.85
StrUTF8NewFunction · 0.85
LAW_DecodeFunction · 0.85
EnsureStreamBufferSizeFunction · 0.85
UpdateAudioStreamFunction · 0.85
GL_HandleDebugMessageFunction · 0.85
D3D11_CreateBlendStateFunction · 0.85
SDL_vasprintfFunction · 0.85
SDL_setenvFunction · 0.85
SDL_getenvFunction · 0.85

Calls

no outgoing calls

Tested by 1

AddControllerFunction · 0.68