diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-09 00:42:44 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-09 00:42:44 +0200 |
| commit | af8a516fc22865abd80d6e26f1541fa3d6bebfdc (patch) | |
| tree | 96d42a10945fc03df022389aef54708383c1d616 /Kernel/CompilerKit | |
| parent | a874e9cc98df994178d55996943fe81799c61d2f (diff) | |
MHR-23: :boom:, refactors.
- Move NewBoot to /Boot, thus making Kernel directory only containing the kernel.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/CompilerKit')
| -rw-r--r-- | Kernel/CompilerKit/CompilerKit.hxx | 13 | ||||
| -rw-r--r-- | Kernel/CompilerKit/Detail.hxx | 27 | ||||
| -rw-r--r-- | Kernel/CompilerKit/Version.hxx | 4 |
3 files changed, 44 insertions, 0 deletions
diff --git a/Kernel/CompilerKit/CompilerKit.hxx b/Kernel/CompilerKit/CompilerKit.hxx new file mode 100644 index 00000000..7dbeaf17 --- /dev/null +++ b/Kernel/CompilerKit/CompilerKit.hxx @@ -0,0 +1,13 @@ +/* ------------------------------------------- + + Copyright SoftwareLabs + +------------------------------------------- */ + +#ifndef _INC_CL_HPP +#define _INC_CL_HPP + +#include <CompilerKit/Detail.hxx> +#include <CompilerKit/Version.hxx> + +#endif /* ifndef _INC_CL_HPP */ diff --git a/Kernel/CompilerKit/Detail.hxx b/Kernel/CompilerKit/Detail.hxx new file mode 100644 index 00000000..6b4e49e9 --- /dev/null +++ b/Kernel/CompilerKit/Detail.hxx @@ -0,0 +1,27 @@ +/* ------------------------------------------- + + Copyright SoftwareLabs + +------------------------------------------- */ + +#pragma once + +#ifdef __KERNEL__ +#include <NewKit/Defines.hpp> +#endif // ifdef __KERNEL__ + +#define NEWOS_COPY_DELETE(KLASS) \ + KLASS& operator=(const KLASS&) = delete; \ + KLASS(const KLASS&) = delete; + +#define NEWOS_COPY_DEFAULT(KLASS) \ + KLASS& operator=(const KLASS&) = default; \ + KLASS(const KLASS&) = default; + +#define NEWOS_MOVE_DELETE(KLASS) \ + KLASS& operator=(KLASS&&) = delete; \ + KLASS(KLASS&&) = delete; + +#define NEWOS_MOVE_DEFAULT(KLASS) \ + KLASS& operator=(KLASS&&) = default; \ + KLASS(KLASS&&) = default; diff --git a/Kernel/CompilerKit/Version.hxx b/Kernel/CompilerKit/Version.hxx new file mode 100644 index 00000000..c0d42603 --- /dev/null +++ b/Kernel/CompilerKit/Version.hxx @@ -0,0 +1,4 @@ +#pragma once + +#define BOOTLOADER_VERSION L"v1.14.2" +#define KERNEL_VERSION "v1.14.2" |
