MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / NFDi_Malloc

Function NFDi_Malloc

extern/nfd/nfd_win.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42template <typename T = void>
43T* NFDi_Malloc(size_t bytes) {
44 void* ptr = malloc(bytes);
45 if (!ptr) NFDi_SetError("NFDi_Malloc failed.");
46
47 return static_cast<T*>(ptr);
48}
49
50template <typename T>
51void NFDi_Free(T* ptr) {

Callers

nothing calls this directly

Calls 1

NFDi_SetErrorFunction · 0.70

Tested by

no test coverage detected