Browse Source
Merge pull request #10417 from liamwhite/check-state
k_memory_block_manager: remove auditing calls
pull/15/merge
Fernando S
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
6 deletions
-
src/core/hle/kernel/k_memory_block_manager.h
|
|
|
@ -144,14 +144,10 @@ private: |
|
|
|
|
|
|
|
class KScopedMemoryBlockManagerAuditor { |
|
|
|
public: |
|
|
|
explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager* m) : m_manager(m) { |
|
|
|
ASSERT(m_manager->CheckState()); |
|
|
|
} |
|
|
|
explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager* m) : m_manager(m) {} |
|
|
|
explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager& m) |
|
|
|
: KScopedMemoryBlockManagerAuditor(std::addressof(m)) {} |
|
|
|
~KScopedMemoryBlockManagerAuditor() { |
|
|
|
ASSERT(m_manager->CheckState()); |
|
|
|
} |
|
|
|
~KScopedMemoryBlockManagerAuditor() = default; |
|
|
|
|
|
|
|
private: |
|
|
|
KMemoryBlockManager* m_manager; |
|
|
|
|