mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(memory): add STORM_FREE macro
This commit is contained in:
parent
05f8a7eebf
commit
547fc6d4f0
6 changed files with 30 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue