diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-20 21:36:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 21:36:32 (GMT) |
commit | 245d439320e0921459502883fe809213e3b93e35 (patch) | |
tree | 4b06894483c301c4971754763489d1dabb8b7900 /Include | |
parent | b50edac42fd39d58ba51eb9cee2d3645a2e28ca4 (diff) | |
download | cpython-245d439320e0921459502883fe809213e3b93e35.zip cpython-245d439320e0921459502883fe809213e3b93e35.tar.gz cpython-245d439320e0921459502883fe809213e3b93e35.tar.bz2 |
bpo-38205: Py_UNREACHABLE() calls Py_FatalError() (GH-16290) (GH-16306)
(cherry picked from commit b1542583bee204130934c2b90684041e29378250)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pymacro.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pymacro.h b/Include/pymacro.h index 1890619..495c2c2 100644 --- a/Include/pymacro.h +++ b/Include/pymacro.h @@ -100,6 +100,7 @@ # define Py_UNUSED(name) _unused_ ## name #endif -#define Py_UNREACHABLE() abort() +#define Py_UNREACHABLE() \ + Py_FatalError("Unreachable C code path reached") #endif /* Py_PYMACRO_H */ |