5#include <egg/core/ExpHeap.hh>
18 EGG::ExpHeap *heap = EGG::Heap::dynamicCastToExp(EGG::Heap::getCurrentHeap());
20 GroupID prevID =
static_cast<GroupID
>(heap->getGroupID());
22 if (prevID != GroupID::None) {
23 WARN(
"Overwriting non-default group ID! Replacing %d with %d", prevID, newID);
26 heap->setGroupID(
static_cast<u16>(newID));
30 EGG::ExpHeap *heap = EGG::Heap::dynamicCastToExp(EGG::Heap::getCurrentHeap());
32 heap->setGroupID(
static_cast<u16>(GroupID::None));
This header houses common data types such as our integral types and enums.
High-level implementation of a memory heap for managing dynamic memory allocation....
ScopeLock(GroupID newID)
Temporarily changes the group ID of a given heap to better track memory allocation.