mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
pystate.h: fix _PyThreadState_UncheckedGet()
Declare the function even if thread support is disabled.
This commit is contained in:
parent
27461683a9
commit
4b8b86c6d5
1 changed files with 0 additions and 2 deletions
|
@ -173,11 +173,9 @@ PyAPI_FUNC(void) _PyGILState_Reinit(void);
|
|||
* the caller needn't check for NULL). */
|
||||
PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
|
||||
|
||||
#ifdef WITH_THREAD
|
||||
/* Similar to PyThreadState_Get(), but don't issue a fatal error
|
||||
* if it is NULL. */
|
||||
PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void);
|
||||
#endif
|
||||
|
||||
PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
|
||||
PyAPI_FUNC(PyObject *) PyThreadState_GetDict(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue