MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY DefaultAllocFunc

Function ILAPIENTRY DefaultAllocFunc

DevIL/src-IL/src/il_alloc.cpp:114–121  ·  view source on GitHub ↗

Default Allocation/Deallocation Function ***/

Source from the content-addressed store, hash-verified

112
113/*** Default Allocation/Deallocation Function ***/
114static void* ILAPIENTRY DefaultAllocFunc(const ILsizei Size)
115{
116#ifdef VECTORMEM
117 return (void*)vec_malloc(Size);
118#else
119 return malloc(Size);
120#endif //VECTORMEM
121}
122
123static void ILAPIENTRY DefaultFreeFunc(const void * CONST_RESTRICT ptr)
124{

Callers

nothing calls this directly

Calls 1

vec_mallocFunction · 0.85

Tested by

no test coverage detected