diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-24 09:04:34 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-24 09:04:34 +0100 |
| commit | 917eae9453ecac6d9aeb04254d5d5c97e5a6c9e1 (patch) | |
| tree | 767f6aeabb24f02c119e073e3efd2c710aabed5d /Private/KernelKit/HError.hpp | |
| parent | 5563deabd8f7ce3fc713ea23f8cf5bbac33b4024 (diff) | |
Kernel: MS-1: Microkernel and bootloader.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit/HError.hpp')
| -rw-r--r-- | Private/KernelKit/HError.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Private/KernelKit/HError.hpp b/Private/KernelKit/HError.hpp index 0d412154..247608f9 100644 --- a/Private/KernelKit/HError.hpp +++ b/Private/KernelKit/HError.hpp @@ -31,5 +31,8 @@ inline constexpr HError kErrorHeapOutOfMemory = 44; Boolean ke_bug_check(void) noexcept; } // namespace HCore -#define KernIsOk(HERR) (HERR == HCore::kErrorSuccess) -#define KernHasFailed(HERR) (HERR != HCore::kErrorSuccess) +#define IsOk(HERR) (HERR == HCore::kErrorSuccess) +#define HasFailed(HERR) (HERR != HCore::kErrorSuccess) +#define GetLastError() LastError + +inline HCore::HError LastError = 0; |
