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

Function c_alloc

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

Source from the content-addressed store, hash-verified

106 }
107
108 void *c_alloc(unsigned long size, unsigned long num, const char *file, unsigned long line)
109 {
110 ILvoid *ptr;
111 ptr = calloc(size, num);
112 if (!ptr)
113 return NULL;
114 AddToAtexit();
115 AddTrack((unsigned long)ptr, size * num, file, line);
116 return ptr;
117 }
118
119
120 void *m_alloc(unsigned long size, const char *file, unsigned long line)

Callers

nothing calls this directly

Calls 2

AddToAtexitFunction · 0.85
AddTrackFunction · 0.85

Tested by

no test coverage detected