From 5339d016c07bf717ee388f4feb73544087324af0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 6 Jan 2024 09:14:11 +0100 Subject: git: port from mercurial repo. Signed-off-by: Amlal El Mahrouss --- CompilerKit/Compiler.hpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 CompilerKit/Compiler.hpp (limited to 'CompilerKit/Compiler.hpp') diff --git a/CompilerKit/Compiler.hpp b/CompilerKit/Compiler.hpp new file mode 100644 index 00000000..39f8824e --- /dev/null +++ b/CompilerKit/Compiler.hpp @@ -0,0 +1,36 @@ +/* + * ======================================================== + * + * hCore + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#ifndef _INC_CL_HPP +#define _INC_CL_HPP + +#include + +#define HCORE_COPY_DELETE(KLASS) \ + KLASS &operator=(const KLASS &) = delete; \ + KLASS(const KLASS &) = delete; + + +#define HCORE_COPY_DEFAULT(KLASS) \ + KLASS &operator=(const KLASS &) = default; \ + KLASS(const KLASS &) = default; + + +#define HCORE_MOVE_DELETE(KLASS) \ + KLASS &operator=(KLASS &&) = delete; \ + KLASS(KLASS &&) = delete; + + +#define HCORE_MOVE_DEFAULT(KLASS) \ + KLASS &operator=(KLASS &&) = default; \ + KLASS(KLASS &&) = default; + + + +#endif /* ifndef _INC_CL_HPP */ -- cgit v1.2.3