diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-28 21:32:21 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-28 21:32:21 +0200 |
| commit | ebab1465b4d42910da1b36d8c65487c2f077b481 (patch) | |
| tree | 22e6d280f7ce56a6c6e156294fdc276c6e27848b /Common/CompilerKit.hpp | |
| parent | 5e49fbae54bd7dcbf2e893acaef699ce9f2587f3 (diff) | |
MHR-21: refactors.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Common/CompilerKit.hpp')
| -rw-r--r-- | Common/CompilerKit.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Common/CompilerKit.hpp b/Common/CompilerKit.hpp new file mode 100644 index 0000000..b9de089 --- /dev/null +++ b/Common/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 */ |
