diff options
| author | Amlal <amlalelmahrouss@icloud.com> | 2024-05-11 06:43:54 +0000 |
|---|---|---|
| committer | Amlal <amlalelmahrouss@icloud.com> | 2024-05-11 06:43:54 +0000 |
| commit | ca675beb41dba8d7d16c5793b55d1672f38be3b4 (patch) | |
| tree | c995ada42729ac2059a0ed87a4539d1a7e10b14a /Kernel/CompilerKit | |
| parent | 2b4a4792abf51487ab4a16106f9376f43acf381a (diff) | |
| parent | bc57a29a24b98b00ba17710ba84ec2188ab73504 (diff) | |
Merged in MHR-23 (pull request #12)
MHR-23: Merge work.
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" |
