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

Function SDL_malloc

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

Source from the content-addressed store, hash-verified

5377}
5378
5379void *SDL_malloc(size_t size)
5380{
5381 void *mem;
5382
5383 if (!size) {
5384 size = 1;
5385 }
5386
5387 mem = s_mem.malloc_func(size);
5388 if (mem) {
5389 SDL_AtomicIncRef(&s_mem.num_allocations);
5390 }
5391 return mem;
5392}
5393
5394void *SDL_calloc(size_t nmemb, size_t size)
5395{

Callers 15

loadSoundFunction · 0.85
verify_yuv_dataFunction · 0.85
run_automated_testsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
pixels_calcGammaRampFunction · 0.85
mainFunction · 0.85
audio_convertAudioFunction · 0.85
unifont_initFunction · 0.85
unifont_load_textureFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 15

verify_yuv_dataFunction · 0.68
run_automated_testsFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
pixels_calcGammaRampFunction · 0.68
mainFunction · 0.68
audio_convertAudioFunction · 0.68
unifont_initFunction · 0.68
unifont_load_textureFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
WatchGameControllerFunction · 0.68