feat(memory): add memory leak check assertion

This commit is contained in:
2023-01-11 19:24:02 +08:00
parent d8543421a0
commit 49023da0c1
3 changed files with 96 additions and 30 deletions

View File

@ -255,6 +255,7 @@ NODISCARD REDCRAFTUTILITY_API void* Malloc(size_t Count, size_t Alignment = Defa
/**
* Reallocates the given area of memory. It must be previously allocated by Malloc() or Realloc().
* If 'Ptr' is a nullptr, effectively the same as calling Malloc().
*
* @param Ptr - The pointer to the memory area to be reallocated.
* @param Count - The number of bytes to allocate.