From edc6c1924ae8d60d7a1e1c3c54d8e9297fc5eb97 Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Wed, 27 Nov 2024 16:55:37 +0800 Subject: [PATCH] fix(miscellaneous): fix unreachable indicator function will return --- .../Source/Public/Miscellaneous/ProgramSupport.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Redcraft.Utility/Source/Public/Miscellaneous/ProgramSupport.h b/Redcraft.Utility/Source/Public/Miscellaneous/ProgramSupport.h index 68d6e24..772166f 100644 --- a/Redcraft.Utility/Source/Public/Miscellaneous/ProgramSupport.h +++ b/Redcraft.Utility/Source/Public/Miscellaneous/ProgramSupport.h @@ -1,5 +1,6 @@ #pragma once +#include "AssertionMacros.h" #include "CoreTypes.h" #include @@ -84,6 +85,10 @@ NORETURN FORCEINLINE void Unreachable() { NAMESPACE_STD::unreachable(); } +# else + { + Abort(); + } # endif }