ScopedCurrentHeapSetter class
Sets the "current heap" to the specified heap and restores the previous "current heap" when this goes out of scope.
Constructors, destructors, conversion operators
-
ScopedCurrentHeapSetter(sead::
Heap* heap) explicit - ~ScopedCurrentHeapSetter()
Protected functions
- auto getPreviousHeap_() const -> Heap*
- void setPreviousHeap_(Heap* heap)
- void setPreviousHeapToNone_()
- auto hasPreviousHeap_() const -> bool
Protected variables
- uintptr_t mPreviousHeap