8000 Implement pg_unreachable() on MSVC. · postgrespro/postgres_cluster@52906f1 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

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)
0