Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 2149777

Browse files
authored
Define Py_UNREACHABLE if it doesn't exist
1 parent f289a75 commit 2149777

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

automap.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ really gives us our awesome performance.
114114
# define PY_SSIZE_T_CLEAN
115115
# include "Python.h"
116116

117+
// PyPy doesn't define Py_UNREACHABLE():
118+
119+
# ifndef Py_UNREACHABLE
120+
# define Py_UNREACHABLE() Py_FatalError("https://xkcd.com/2200")
121+
# endif
122+
117123
// Experimentation shows that these values work well:
118124

119125
# define LOAD 0.9

0 commit comments

Comments
 (0)