mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-39947: Add PyThreadState_GetFrame() function (GH-19092)
Add PyThreadState_GetFrame() function: get the current frame of a Python thread state.
This commit is contained in:
parent
d83168854e
commit
fd1e1a18fa
6 changed files with 33 additions and 5 deletions
|
@ -89,7 +89,8 @@ PyAPI_FUNC(int) PyThreadState_SetAsyncExc(unsigned long, PyObject *);
|
|||
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03090000
|
||||
/* New in 3.9 */
|
||||
PyAPI_FUNC(PyInterpreterState *) PyThreadState_GetInterpreter(PyThreadState *tstate);
|
||||
PyAPI_FUNC(PyInterpreterState*) PyThreadState_GetInterpreter(PyThreadState *tstate);
|
||||
PyAPI_FUNC(struct _frame*) PyThreadState_GetFrame(PyThreadState *tstate);
|
||||
#endif
|
||||
|
||||
typedef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue