mirror of
https://github.com/zeldaret/ss
synced 2026-07-11 06:45:20 -04:00
more CREATE_ALLOCATOR macros
This commit is contained in:
@@ -254,14 +254,17 @@ public:
|
||||
return result; \
|
||||
} while (0)
|
||||
|
||||
// Use this in actors' create functions
|
||||
#define CREATE_ALLOCATOR(className) \
|
||||
#define CREATE_ALLOCATOR_SIZE(className, size) \
|
||||
do { \
|
||||
if (!initAllocatorWork1Heap(-1, #className "::m_allocator", 0x20)) { \
|
||||
if (!initAllocatorWork1Heap(size, #className "::m_allocator", 0x20)) { \
|
||||
return FAILED; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
// Use this in actors' create functions
|
||||
#define CREATE_ALLOCATOR(className) CREATE_ALLOCATOR_SIZE(className, -1)
|
||||
#define CREATE_ALLOCATOR_UNCHECKED(className) initAllocatorWork1Heap(-1, #className "::m_allocator", 0x20)
|
||||
|
||||
class dAcObjRef_unk {
|
||||
public:
|
||||
dAcObjRef_unk(dAcObjBase_c *ref) : mObj(nullptr), refOwner(ref) {}
|
||||
|
||||
Reference in New Issue
Block a user