summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2021-05-01 12:22:14 -0700
committerGravatar bunnei2021-05-05 16:40:53 -0700
commitd3c166d4d5fddb0c19c0219a3efdc85907ebce31 (patch)
treed0df1f632cbf8dc884ef95393bcd6b6c6efa4926
parentfixup! hle: kernel: Rename Process to KProcess. (diff)
downloadyuzu-d3c166d4d5fddb0c19c0219a3efdc85907ebce31.tar.gz
yuzu-d3c166d4d5fddb0c19c0219a3efdc85907ebce31.tar.xz
yuzu-d3c166d4d5fddb0c19c0219a3efdc85907ebce31.zip
common: Rename NON_COPYABLE/NON_MOVABLE with YUZU_ prefix.
-rw-r--r--src/common/common_funcs.h4
-rw-r--r--src/core/hle/kernel/k_auto_object.h6
-rw-r--r--src/core/hle/kernel/k_auto_object_container.h4
-rw-r--r--src/core/hle/kernel/k_handle_table.h4
-rw-r--r--src/core/hle/service/vi/display/vi_display.h4
5 files changed, 11 insertions, 11 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 19bb021e0..17d1ee86b 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -108,11 +108,11 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
108 } \ 108 } \
109 } 109 }
110 110
111#define NON_COPYABLE(cls) \ 111#define YUZU_NON_COPYABLE(cls) \
112 cls(const cls&) = delete; \ 112 cls(const cls&) = delete; \
113 cls& operator=(const cls&) = delete 113 cls& operator=(const cls&) = delete
114 114
115#define NON_MOVEABLE(cls) \ 115#define YUZU_NON_MOVEABLE(cls) \
116 cls(cls&&) = delete; \ 116 cls(cls&&) = delete; \
117 cls& operator=(cls&&) = delete 117 cls& operator=(cls&&) = delete
118 118
diff --git a/src/core/hle/kernel/k_auto_object.h b/src/core/hle/kernel/k_auto_object.h
index 32aaf9fc5..e99986c68 100644
--- a/src/core/hle/kernel/k_auto_object.h
+++ b/src/core/hle/kernel/k_auto_object.h
@@ -18,8 +18,8 @@ class KernelCore;
18class KProcess; 18class KProcess;
19 19
20#define KERNEL_AUTOOBJECT_TRAITS(CLASS, BASE_CLASS) \ 20#define KERNEL_AUTOOBJECT_TRAITS(CLASS, BASE_CLASS) \
21 NON_COPYABLE(CLASS); \ 21 YUZU_NON_COPYABLE(CLASS); \
22 NON_MOVEABLE(CLASS); \ 22 YUZU_NON_MOVEABLE(CLASS); \
23 \ 23 \
24private: \ 24private: \
25 friend class ::Kernel::KClassTokenGenerator; \ 25 friend class ::Kernel::KClassTokenGenerator; \
@@ -213,7 +213,7 @@ public:
213 213
214template <typename T> 214template <typename T>
215class KScopedAutoObject { 215class KScopedAutoObject {
216 NON_COPYABLE(KScopedAutoObject); 216 YUZU_NON_COPYABLE(KScopedAutoObject);
217 217
218private: 218private:
219 template <typename U> 219 template <typename U>
diff --git a/src/core/hle/kernel/k_auto_object_container.h b/src/core/hle/kernel/k_auto_object_container.h
index 6d1cd4862..8609f7a8d 100644
--- a/src/core/hle/kernel/k_auto_object_container.h
+++ b/src/core/hle/kernel/k_auto_object_container.h
@@ -19,8 +19,8 @@ class KernelCore;
19class KProcess; 19class KProcess;
20 20
21class KAutoObjectWithListContainer { 21class KAutoObjectWithListContainer {
22 NON_COPYABLE(KAutoObjectWithListContainer); 22 YUZU_NON_COPYABLE(KAutoObjectWithListContainer);
23 NON_MOVEABLE(KAutoObjectWithListContainer); 23 YUZU_NON_MOVEABLE(KAutoObjectWithListContainer);
24 24
25public: 25public:
26 using ListType = Common::IntrusiveRedBlackTreeMemberTraits< 26 using ListType = Common::IntrusiveRedBlackTreeMemberTraits<
diff --git a/src/core/hle/kernel/k_handle_table.h b/src/core/hle/kernel/k_handle_table.h
index e38ad0fd9..74afb91b1 100644
--- a/src/core/hle/kernel/k_handle_table.h
+++ b/src/core/hle/kernel/k_handle_table.h
@@ -23,8 +23,8 @@ namespace Kernel {
23class KernelCore; 23class KernelCore;
24 24
25class KHandleTable { 25class KHandleTable {
26 NON_COPYABLE(KHandleTable); 26 YUZU_NON_COPYABLE(KHandleTable);
27 NON_MOVEABLE(KHandleTable); 27 YUZU_NON_MOVEABLE(KHandleTable);
28 28
29public: 29public:
30 static constexpr size_t MaxTableSize = 1024; 30 static constexpr size_t MaxTableSize = 1024;
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h
index a09d982bc..388ce6083 100644
--- a/src/core/hle/service/vi/display/vi_display.h
+++ b/src/core/hle/service/vi/display/vi_display.h
@@ -25,8 +25,8 @@ class Layer;
25 25
26/// Represents a single display type 26/// Represents a single display type
27class Display { 27class Display {
28 NON_COPYABLE(Display); 28 YUZU_NON_COPYABLE(Display);
29 NON_MOVEABLE(Display); 29 YUZU_NON_MOVEABLE(Display);
30 30
31public: 31public:
32 /// Constructs a display with a given unique ID and name. 32 /// Constructs a display with a given unique ID and name.