summaryrefslogtreecommitdiffhomepage
path: root/src/boot
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-30 09:51:43 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-30 09:54:07 -0500
commitd3892e80f787f86062733bd8ad3e725fb548d6fe (patch)
tree25029f4e491e3da39b6ce66760f8742ad73f16d2 /src/boot
parentba3cd2194412914936c1c00efe87391d0615cd17 (diff)
chore: added new aliases for OwnPtr and ErrorOr (OwnOr)
chore: use STATIC_PASS instead of static_assert in /src/kernel. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/BootKit/Qr.h4
-rw-r--r--src/boot/BootKit/QrPrelude.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/boot/BootKit/Qr.h b/src/boot/BootKit/Qr.h
index f5ac5f2e..ab4696cc 100644
--- a/src/boot/BootKit/Qr.h
+++ b/src/boot/BootKit/Qr.h
@@ -3,7 +3,7 @@
#include <BootKit/Shared/base.h>
#include <BootKit/Shared/bit.h>
-
+#include <NeKit/KernelPanic.h>
#include <BootKit/QrPrelude.h>
#include <BootKit/Support.h>
#include <CompilerKit/Detail.h>
@@ -265,7 +265,7 @@ struct Qr {
void apply_mask(int mask, uint8_t* patterns);
private:
- static_assert(V >= 1 && V <= 40, "invalid version");
+ STATIC_PASS(V >= 1 && V <= 40, "invalid version");
static constexpr int SIDE = 17 + V * 4;
static constexpr int N_BITS = SIDE * SIDE;
static constexpr int N_ALIGN = V == 1 ? 0 : V / 7 + 2;
diff --git a/src/boot/BootKit/QrPrelude.h b/src/boot/BootKit/QrPrelude.h
index e89fad7a..7b09fdb0 100644
--- a/src/boot/BootKit/QrPrelude.h
+++ b/src/boot/BootKit/QrPrelude.h
@@ -1 +1,9 @@
+/* ========================================
+
+ Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
+
+======================================== */
+
+#pragma once
+
#include <BootKit/BitManip.h> \ No newline at end of file