| 41 | |
| 42 | template <typename T = void> |
| 43 | T* 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 | |
| 50 | template <typename T> |
| 51 | void NFDi_Free(T* ptr) { |
nothing calls this directly
no test coverage detected