mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-36475: Make PyThread_exit_thread with _Py_NO_RETURN (GH-13068)
This commit is contained in:
parent
6b5b013bcc
commit
c664b342a4
6 changed files with 17 additions and 15 deletions
|
@ -21,17 +21,6 @@ PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **);
|
|||
PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) || \
|
||||
(defined(__GNUC__) && \
|
||||
((__GNUC__ >= 3) || \
|
||||
(__GNUC__ == 2) && (__GNUC_MINOR__ >= 5)))
|
||||
# define _Py_NO_RETURN __attribute__((__noreturn__))
|
||||
#elif defined(_MSC_VER)
|
||||
# define _Py_NO_RETURN __declspec(noreturn)
|
||||
#else
|
||||
# define _Py_NO_RETURN
|
||||
#endif
|
||||
|
||||
/* Defined in Python/pylifecycle.c */
|
||||
PyAPI_FUNC(void) _Py_NO_RETURN Py_FatalError(const char *message);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue