fix(miscellaneous): fix unreachable indicator function will return

This commit is contained in:
Redstone1024 2024-11-27 16:55:37 +08:00
parent 5a5d34e908
commit edc6c1924a

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include "AssertionMacros.h"
#include "CoreTypes.h" #include "CoreTypes.h"
#include <cstdlib> #include <cstdlib>
@ -84,6 +85,10 @@ NORETURN FORCEINLINE void Unreachable()
{ {
NAMESPACE_STD::unreachable(); NAMESPACE_STD::unreachable();
} }
# else
{
Abort();
}
# endif # endif
} }