1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Implement pg_unreachable() on MSVC.

This commit is contained in:
Heikki Linnakangas
2013-01-23 12:47:00 +02:00
parent eaf764842e
commit 52906f175a

View File

@@ -755,6 +755,8 @@ typedef NameData *Name;
*/
#if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING)
#define pg_unreachable() __builtin_unreachable()
#elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING)
#define pg_unreachable() __assume(0)
#else
#define pg_unreachable() abort()
#endif