mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(memory): add STORM_ALLOC and STORM_NEW macros
This commit is contained in:
parent
595e431d92
commit
20457f7d4c
5 changed files with 16 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue