From ecff424e9c78418f6d2bd79b7d4f50f42c29860e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 11 Sep 2025 18:00:19 +0200 Subject: fix: SystemKit/Verify.h: fix future link issues with `inline` Signed-off-by: Amlal El Mahrouss --- dev/libSystem/SystemKit/Verify.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/libSystem') diff --git a/dev/libSystem/SystemKit/Verify.h b/dev/libSystem/SystemKit/Verify.h index 68e75d47..cbf85830 100644 --- a/dev/libSystem/SystemKit/Verify.h +++ b/dev/libSystem/SystemKit/Verify.h @@ -15,7 +15,7 @@ namespace LibSystem::Detail { /// @author 0xf00sec, and Amlal El Mahrouss /// @brief safe cast operator. template -static R sys_safe_cast(const T* ptr) { +inline R sys_safe_cast(const T* ptr) { _rtl_assert(ptr, "safe cast failed!"); return static_cast(const_cast(ptr)); } @@ -33,7 +33,7 @@ struct must_cast_traits { /// @author Amlal El Mahrouss /// @brief Safe constexpr cast. template -constexpr R* sys_constexpr_cast(T* ptr) { +inline constexpr R* sys_constexpr_cast(T* ptr) { static_assert(must_cast_traits::value, "constexpr cast failed! types are a mismatch!"); return static_cast(ptr); } -- cgit v1.2.3