summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-31 23:19:26 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:49 +0200
commitb99fc701912e7ef87a6c1a7aca7ec285279da43a (patch)
tree5e311a5a027070f91680171502ba55e93cb7c979 /src/common
parentMerge pull request #6279 from ogniK5377/nvhost-prof (diff)
downloadyuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.tar
yuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.tar.gz
yuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.tar.bz2
yuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.tar.lz
yuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.tar.xz
yuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.tar.zst
yuzu-b99fc701912e7ef87a6c1a7aca7ec285279da43a.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common_funcs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 4ace2cd33..73c8c9354 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -108,6 +108,14 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
} \
}
+#define NON_COPYABLE(cls) \
+ cls(const cls&) = delete; \
+ cls& operator=(const cls&) = delete
+
+#define NON_MOVEABLE(cls) \
+ cls(cls&&) = delete; \
+ cls& operator=(cls&&) = delete
+
#define R_SUCCEEDED(res) (res.IsSuccess())
/// Evaluates an expression that returns a result, and returns the result if it would fail.