Implement pg_unreachable() on MSVC.

This commit is contained in:
Heikki Linnakangas 2013-01-23 12:47:00 +02:00
parent eaf764842e
commit 52906f175a
1 changed files with 2 additions and 0 deletions

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