summaryrefslogtreecommitdiffhomepage
path: root/NewKernel/CompilerKit/Detail.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'NewKernel/CompilerKit/Detail.hxx')
-rw-r--r--NewKernel/CompilerKit/Detail.hxx27
1 files changed, 27 insertions, 0 deletions
diff --git a/NewKernel/CompilerKit/Detail.hxx b/NewKernel/CompilerKit/Detail.hxx
new file mode 100644
index 00000000..6e10c7f4
--- /dev/null
+++ b/NewKernel/CompilerKit/Detail.hxx
@@ -0,0 +1,27 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+
+------------------------------------------- */
+
+#pragma once
+
+#ifdef __KERNEL__
+#include <NewKit/Defines.hpp>
+#endif // ifdef __KERNEL__
+
+#define NEWOS_COPY_DELETE(KLASS) \
+ KLASS& operator=(const KLASS&) = delete; \
+ KLASS(const KLASS&) = delete;
+
+#define NEWOS_COPY_DEFAULT(KLASS) \
+ KLASS& operator=(const KLASS&) = default; \
+ KLASS(const KLASS&) = default;
+
+#define NEWOS_MOVE_DELETE(KLASS) \
+ KLASS& operator=(KLASS&&) = delete; \
+ KLASS(KLASS&&) = delete;
+
+#define NEWOS_MOVE_DEFAULT(KLASS) \
+ KLASS& operator=(KLASS&&) = default; \
+ KLASS(KLASS&&) = default;