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

Function ILAPIENTRY ialloc

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

Allocation/Deallocation Function ***/

Source from the content-addressed store, hash-verified

86
87/*** Allocation/Deallocation Function ***/
88void* ILAPIENTRY ialloc(const ILsizei Size)
89{
90 void *Ptr = ialloc_ptr(Size);
91 if (Ptr == NULL)
92 ilSetError(IL_OUT_OF_MEMORY);
93 return Ptr;
94}
95
96void ILAPIENTRY ifree(const void * CONST_RESTRICT Ptr)
97{

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected