From fc4a54418044263c3173ff9bb793fad698b89cda Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 15 Nov 2024 00:42:19 +0100 Subject: Windows: Use VS builtin __fastfail intrinsic for fatal exception instead of affecting NULL pointer --- src/Common/Tcdefs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Common/Tcdefs.h b/src/Common/Tcdefs.h index f88ff582..e7eee177 100644 --- a/src/Common/Tcdefs.h +++ b/src/Common/Tcdefs.h @@ -240,6 +240,9 @@ void ThrowFatalException(int line); || (defined(__GNUC__ ) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))) \ || (__has_builtin(__builtin_trap)) # define TC_THROW_FATAL_EXCEPTION __builtin_trap() +#elif defined(_MSC_VER) +#include +# define TC_THROW_FATAL_EXCEPTION __fastfail(FAST_FAIL_FATAL_APP_EXIT) #else # define TC_THROW_FATAL_EXCEPTION *(char *) 0 = 0 #endif -- cgit v1.2.3