summaryrefslogtreecommitdiffhomepage
path: root/Comm/CompilerKit.hpp
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:57:20 +0200
committerAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:57:20 +0200
commit0aebad569eef2989e32d9825ce52708371685ff9 (patch)
tree29faa339ef63d65f02cbb8c549dd6f5f047a4f68 /Comm/CompilerKit.hpp
parent54ace477f90b5bd17ddd7c5d11c2e319f19555bd (diff)
MHR-21: Finish C++ compiler.
Signed-off-by: Amlal EL Mahrouss <amlal@softwarelabs.com>
Diffstat (limited to 'Comm/CompilerKit.hpp')
-rw-r--r--Comm/CompilerKit.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/Comm/CompilerKit.hpp b/Comm/CompilerKit.hpp
new file mode 100644
index 0000000..b9de089
--- /dev/null
+++ b/Comm/CompilerKit.hpp
@@ -0,0 +1,33 @@
+/* -------------------------------------------
+
+ Copyright SoftwareLabs
+
+------------------------------------------- */
+
+//! provide support for CompilerKit.hpp header.
+
+#ifndef _CK_CL_HPP
+#define _CK_CL_HPP
+
+#define MPCC_COPY_DELETE(KLASS) \
+ KLASS& operator=(const KLASS&) = delete; \
+ KLASS(const KLASS&) = delete;
+
+#define MPCC_COPY_DEFAULT(KLASS) \
+ KLASS& operator=(const KLASS&) = default; \
+ KLASS(const KLASS&) = default;
+
+#define MPCC_MOVE_DELETE(KLASS) \
+ KLASS& operator=(KLASS&&) = delete; \
+ KLASS(KLASS&&) = delete;
+
+#define MPCC_MOVE_DEFAULT(KLASS) \
+ KLASS& operator=(KLASS&&) = default; \
+ KLASS(KLASS&&) = default;
+
+/// @note xxxx is the error placeholder, in hexadecimal.
+#define MPCC_ERROR_PREFIX_CXX "CXXxxxx"
+#define MPCC_ERROR_PREFIX_CL "CLxxxx"
+#define MPCC_ERROR_PREFIX_ASM "ASMxxxx"
+
+#endif /* ifndef _CK_CL_HPP */