summaryrefslogtreecommitdiff
path: root/include/d
diff options
context:
space:
mode:
authorelijah-thomas774 <elijahthomas774@gmail.com>2026-04-11 12:32:15 -0400
committerelijah-thomas774 <elijahthomas774@gmail.com>2026-04-18 09:05:49 -0400
commit7156493229f2a0ac36ba98e7271f147bdd18b47a (patch)
treef23882d46cd4aad5cfe9a9b30e6695491b8f73a4 /include/d
parent124935c073861c40f412e1bc0bfb880f5ded7693 (diff)
more CREATE_ALLOCATOR macros
Diffstat (limited to 'include/d')
-rw-r--r--include/d/a/obj/d_a_obj_base.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/d/a/obj/d_a_obj_base.h b/include/d/a/obj/d_a_obj_base.h
index 57f1222a..8f7287c2 100644
--- a/include/d/a/obj/d_a_obj_base.h
+++ b/include/d/a/obj/d_a_obj_base.h
@@ -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) {}