From d3892e80f787f86062733bd8ad3e725fb548d6fe Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 30 Nov 2025 09:51:43 -0500 Subject: 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 --- src/boot/BootKit/Qr.h | 4 ++-- src/boot/BootKit/QrPrelude.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/boot/BootKit') 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 #include - +#include #include #include #include @@ -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 \ No newline at end of file -- cgit v1.2.3