MCPcopy Create free account
hub / github.com/DentonW/DevIL / m_alloc

Function m_alloc

DevIL/src-ILU/src/ilu_alloc.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120 void *m_alloc(unsigned long size, const char *file, unsigned long line)
121 {
122 ILvoid *ptr;
123 ptr = malloc(size);
124 if (!ptr)
125 return NULL;
126 AddToAtexit();
127 AddTrack((unsigned long)ptr, size, file, line);
128 return ptr;
129 }
130
131
132 void f_ree(void *ptr)

Callers

nothing calls this directly

Calls 2

AddToAtexitFunction · 0.85
AddTrackFunction · 0.85

Tested by

no test coverage detected