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

Function Mem_Realloc

src/_PlatformBase.h:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void* Mem_Realloc(void* mem, cc_uint32 numElems, cc_uint32 elemsSize, const char* place) {
101 void* ptr = Mem_TryRealloc(mem, numElems, elemsSize);
102 if (!ptr) AbortOnAllocFailed(place);
103 return ptr;
104}
105
106static CC_NOINLINE cc_uint32 CalcMemSize(cc_uint32 numElems, cc_uint32 elemsSize) {
107 cc_uint32 numBytes;

Callers 2

FetchFlagsTask_EnsureFunction · 0.85
Utils_ResizeFunction · 0.85

Calls 2

AbortOnAllocFailedFunction · 0.85
Mem_TryReallocFunction · 0.70

Tested by

no test coverage detected