Commit 52906f17 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Implement pg_unreachable() on MSVC.

parent eaf76484
...@@ -755,6 +755,8 @@ typedef NameData *Name; ...@@ -755,6 +755,8 @@ typedef NameData *Name;
*/ */
#if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING) #if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING)
#define pg_unreachable() __builtin_unreachable() #define pg_unreachable() __builtin_unreachable()
#elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING)
#define pg_unreachable() __assume(0)
#else #else
#define pg_unreachable() abort() #define pg_unreachable() abort()
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment