From 263915832993dd12beee10e204f9ebcc6c786ed2 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 30 Dec 2023 23:39:37 +0100 Subject: Meta: initial commit of WestCo optimized toolchain. Signed-off-by: Amlal El Mahrouss --- CompilerKit/Compiler.hpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 CompilerKit/Compiler.hpp (limited to 'CompilerKit') diff --git a/CompilerKit/Compiler.hpp b/CompilerKit/Compiler.hpp new file mode 100644 index 0000000..fc9ca23 --- /dev/null +++ b/CompilerKit/Compiler.hpp @@ -0,0 +1,36 @@ +/* + * ======================================================== + * + * C++Kit + * Copyright WestCo, all rights reserved. + * + * ======================================================== + */ + +//! provide support for Compiler.hpp header. + +#ifndef _CK_CL_HPP +#define _CK_CL_HPP + +#define CXXKIT_COPY_DELETE(KLASS) \ + KLASS &operator=(const KLASS &) = delete; \ + KLASS(const KLASS &) = delete; + + +#define CXXKIT_COPY_DEFAULT(KLASS) \ + KLASS &operator=(const KLASS &) = default; \ + KLASS(const KLASS &) = default; + + +#define CXXKIT_MOVE_DELETE(KLASS) \ + KLASS &operator=(KLASS &&) = delete; \ + KLASS(KLASS &&) = delete; + + +#define CXXKIT_MOVE_DEFAULT(KLASS) \ + KLASS &operator=(KLASS &&) = default; \ + KLASS(KLASS &&) = default; + + + +#endif /* ifndef _CK_CL_HPP */ \ No newline at end of file -- cgit v1.2.3