MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Mem_TryRealloc

Function Mem_TryRealloc

src/_PlatformBase.h:125–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void* Mem_TryRealloc(void* mem, cc_uint32 numElems, cc_uint32 elemsSize) {
126 cc_uint32 size = CalcMemSize(numElems, elemsSize);
127 return size ? realloc(mem, size) : NULL;
128}
129
130void Mem_Free(void* mem) {
131 if (mem) free(mem);

Callers 4

AudioBase_AdjustSoundFunction · 0.70
Mem_ReallocFunction · 0.70
FT_ReallocWrapperFunction · 0.70
Http_BufferExpandFunction · 0.70

Calls 1

CalcMemSizeFunction · 0.85

Tested by

no test coverage detected