Implement pg_unreachable() on MSVC.
This commit is contained in:
parent
eaf764842e
commit
52906f175a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user