MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / SkrDelete

Function SkrDelete

modules/core/core/include/SkrMemory/memory.h:372–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370
371template <typename T>
372void SkrDelete(T* pType)
373{
374 if (pType != nullptr)
375 {
376 pType->~T();
377 sakura_free_aligned((void*)pType, alignof(T));
378 }
379}
380
381#define SkrNewN(__N) SkrNew
382#define SkrNewZeroedN(__N) SkrNewZeroed

Callers 15

DestroyResourceSystemFunction · 0.85
compile_allFunction · 0.85
DestroyMethod · 0.85
DestroyMethod · 0.85
_DestroyMethod · 0.85
on_unloadFunction · 0.85
DestroyMethod · 0.85
DestroyMethod · 0.85
DestroyMethod · 0.85
DestroyMethod · 0.85
CreateMethod · 0.85
FreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected