From b3e76bf866b4223390585589786600475c9fdcae Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 15 Mar 2024 08:03:35 +0100 Subject: API: Inconsitency fix. Signed-off-by: Amlal El Mahrouss --- Private/CompilerKit/CompilerKit.hpp | 35 ----------------------------------- Private/CompilerKit/CompilerKit.hxx | 13 +++++++++++++ Private/CompilerKit/Detail.hxx | 29 +++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 35 deletions(-) delete mode 100644 Private/CompilerKit/CompilerKit.hpp create mode 100644 Private/CompilerKit/CompilerKit.hxx create mode 100644 Private/CompilerKit/Detail.hxx (limited to 'Private/CompilerKit') diff --git a/Private/CompilerKit/CompilerKit.hpp b/Private/CompilerKit/CompilerKit.hpp deleted file mode 100644 index 34f69ccc..00000000 --- a/Private/CompilerKit/CompilerKit.hpp +++ /dev/null @@ -1,35 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#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; - - - -#include - -#endif /* ifndef _INC_CL_HPP */ diff --git a/Private/CompilerKit/CompilerKit.hxx b/Private/CompilerKit/CompilerKit.hxx new file mode 100644 index 00000000..7bed48f9 --- /dev/null +++ b/Private/CompilerKit/CompilerKit.hxx @@ -0,0 +1,13 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#ifndef _INC_CL_HPP +#define _INC_CL_HPP + +#include +#include + +#endif /* ifndef _INC_CL_HPP */ diff --git a/Private/CompilerKit/Detail.hxx b/Private/CompilerKit/Detail.hxx new file mode 100644 index 00000000..0c7a7c46 --- /dev/null +++ b/Private/CompilerKit/Detail.hxx @@ -0,0 +1,29 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#pragma once + +#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; + -- cgit v1.2.3