Skip to content

Commit 52906f1

Browse files
committed
Implement pg_unreachable() on MSVC.
1 parent eaf7648 commit 52906f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/c.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ typedef NameData *Name;
755755
*/
756756
#if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING)
757757
#define pg_unreachable() __builtin_unreachable()
758+
#elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING)
759+
#define pg_unreachable() __assume(0)
758760
#else
759761
#define pg_unreachable() abort()
760762
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy