feat(memory): add STORM_ALLOC and STORM_NEW macros

This commit is contained in:
fallenoak 2025-09-03 23:38:18 -05:00
parent 595e431d92
commit 20457f7d4c
5 changed files with 16 additions and 8 deletions

View file

@ -38,8 +38,7 @@ void* SCreateThread(uint32_t (*threadProc)(void*), void* threadParam, void* a3,
*/
}
void* m = SMemAlloc(sizeof(SThreadParmBlock), __FILE__, __LINE__, 0x8);
auto params = new (m) SThreadParmBlock();
auto params = STORM_NEW(SThreadParmBlock);
params->threadProc = threadProc;
params->threadParam = threadParam;