feat(memory): add STORM_FREE macro

This commit is contained in:
Adam Heinermann 2025-09-12 21:53:57 -07:00 committed by fallenoak
parent 05f8a7eebf
commit 547fc6d4f0
6 changed files with 30 additions and 8 deletions

View file

@ -13,6 +13,9 @@
#define STORM_ALLOC_ZERO(bytes) \
SMemAlloc(bytes, __FILE__, __LINE__, SMEM_FLAG_ZEROMEMORY)
#define STORM_FREE(ptr) \
SMemFree(ptr, __FILE__, __LINE__, 0x0)
#define STORM_NEW(t) \
new(SMemAlloc(sizeof(t), __FILE__, __LINE__, 0x0)) t