mirror of
https://github.com/zeldaret/ss
synced 2026-07-04 12:49:56 -04:00
Actor cleanup (#32)
* Actor cleanup --------- Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user