kern: implement KUserPointer (and test with QueryMemory) in advance of svc dev

This commit is contained in:
Michael Scire committed 2020-02-20 09:05:24 -08:00
1 parent 9f9593e05f
commit efae01c165
17 files changed
+460 -72

No files matched your search

@@ -221,6 +221,9 @@ namespace ams::kern {
constexpr ALWAYS_INLINE void Reset(T *o) {
KScopedAutoObject(o).Swap(*this);
}
constexpr ALWAYS_INLINE bool IsNull() const { return this->obj == nullptr; }
constexpr ALWAYS_INLINE bool IsNotNull() const { return this->obj != nullptr; }
};