Skip to content

Commit e4f328e

Browse files
committed
Define Py_UNREACHABLE for PyPy
1 parent a75a345 commit e4f328e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/isal/isal_zlibmodule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ Changes compared to CPython:
4747

4848
#define DEF_MEM_LEVEL 8
4949

50+
/* Py_UNREACHABLE not defined on PyPy platforms apparently. */
51+
#ifndef Py_UNREACHABLE
52+
#define Py_UNREACHABLE() Py_FatalError("Reached unreachable state")
53+
#endif
54+
5055
static PyTypeObject IsalZlibCompType;
5156
static PyTypeObject IsalZlibDecompType;
5257

0 commit comments

Comments
 (0)