kern: Implement KAutoObject, KSlabHeap, KLightLock

This commit is contained in:
Michael Scire 2020-01-29 22:06:25 -08:00
parent bb4ade30e4
commit 2faf3d33b5
16 changed files with 923 additions and 5 deletions

View file

@ -274,7 +274,7 @@ namespace ams::util {
}
private:
static constexpr TYPED_STORAGE(Derived) DerivedStorage = {};
static_assert(std::addressof(GetParent(GetNode(GetPointer(DerivedStorage)))) == GetPointer(DerivedStorage));
static_assert(GetParent(GetNode(GetPointer(DerivedStorage))) == GetPointer(DerivedStorage));
};
template<class Derived>