diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-29 21:13:17 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-11-04 05:17:06 +0100 |
commit | ddd3f4873627a37c1e5c17bb406e86773cf7f5bc (patch) | |
tree | 4670516660de32d0338ca479b78c6c12be06844e /src | |
parent | core: hle: result: Fix code for compilers. (diff) | |
download | yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.tar yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.tar.gz yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.tar.bz2 yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.tar.lz yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.tar.xz yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.tar.zst yuzu-ddd3f4873627a37c1e5c17bb406e86773cf7f5bc.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/core/hle/kernel/k_debug.h | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 113e663b5..d3831f4a9 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -190,6 +190,7 @@ add_library(core STATIC hle/kernel/k_code_memory.h hle/kernel/k_condition_variable.cpp hle/kernel/k_condition_variable.h + hle/kernel/k_debug.h hle/kernel/k_dynamic_page_manager.h hle/kernel/k_dynamic_resource_manager.h hle/kernel/k_dynamic_slab_heap.h diff --git a/src/core/hle/kernel/k_debug.h b/src/core/hle/kernel/k_debug.h new file mode 100644 index 000000000..e3a0689c8 --- /dev/null +++ b/src/core/hle/kernel/k_debug.h @@ -0,0 +1,20 @@ +// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "core/hle/kernel/k_auto_object.h" +#include "core/hle/kernel/slab_helpers.h" + +namespace Kernel { + +class KDebug final : public KAutoObjectWithSlabHeapAndContainer<KDebug, KAutoObjectWithList> { + KERNEL_AUTOOBJECT_TRAITS(KDebug, KAutoObject); + +public: + explicit KDebug(KernelCore& kernel_) : KAutoObjectWithSlabHeapAndContainer{kernel_} {} + + static void PostDestroy([[maybe_unused]] uintptr_t arg) {} +}; + +} // namespace Kernel |