diff options
| author | robojumper <robojumper@gmail.com> | 2024-09-15 21:40:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-15 15:40:03 -0400 |
| commit | 508d5b9e720f81ebf8148fd07faef1c61e9901b2 (patch) | |
| tree | 825ec260b4628de8585f50997008ec61a109951f /include/d/a | |
| parent | 732a119127b8a5d53092c16f12a37b47e8248fd1 (diff) | |
Actor cleanup (#32)
* Actor cleanup
---------
Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com>
Diffstat (limited to 'include/d/a')
| -rw-r--r-- | include/d/a/obj/d_a_obj_base.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/d/a/obj/d_a_obj_base.h b/include/d/a/obj/d_a_obj_base.h index 434fb4a6..e4ec0f2b 100644 --- a/include/d/a/obj/d_a_obj_base.h +++ b/include/d/a/obj/d_a_obj_base.h @@ -128,6 +128,8 @@ protected: }; // Actors' createHeap functions often have patterns that can be matched with this macro -#define TRY_CREATE(thing) do { bool result = (thing); if (!result) return result; } while (0); +#define TRY_CREATE(thing) do { bool result = (thing); if (!result) return result; } while (0) + +#define CREATE_ALLOCATOR(className) do { if (!initAllocatorWork1Heap(-1, #className "::m_allocator", 0x20)) { return FAILED; } } while (0) #endif |
