From d7112cd6909640afd7609b3a142bc6ecf921ee25 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 30 Jan 2024 08:46:09 +0100 Subject: Kernel: Breaking changes, see source code. Signed-off-by: Amlal El Mahrouss --- Private/CompilerKit/Compiler.hpp | 36 ------------------------------------ Private/CompilerKit/CompilerKit.hpp | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 Private/CompilerKit/Compiler.hpp create mode 100644 Private/CompilerKit/CompilerKit.hpp (limited to 'Private/CompilerKit') diff --git a/Private/CompilerKit/Compiler.hpp b/Private/CompilerKit/Compiler.hpp deleted file mode 100644 index 091e3bef..00000000 --- a/Private/CompilerKit/Compiler.hpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * ======================================================== - * - * hCore - * Copyright 2024 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 */ diff --git a/Private/CompilerKit/CompilerKit.hpp b/Private/CompilerKit/CompilerKit.hpp new file mode 100644 index 00000000..420faa90 --- /dev/null +++ b/Private/CompilerKit/CompilerKit.hpp @@ -0,0 +1,36 @@ +/* + * ======================================================== + * + * HCore + * Copyright 2024 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