summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-20 14:51:45 (GMT)
committerGitHub <noreply@github.com>2020-03-20 14:51:45 (GMT)
commitfd1e1a18fa3befe5b6eeac32e0561e15c7e5164b (patch)
tree06a32a688ef6d88553386ec2710eecc5fd246226 /Include/pystate.h
parentd83168854e19d0381fa57db25fca6c622917624f (diff)
downloadcpython-fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b.zip
cpython-fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b.tar.gz
cpython-fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b.tar.bz2
bpo-39947: Add PyThreadState_GetFrame() function (GH-19092)
Add PyThreadState_GetFrame() function: get the current frame of a Python thread state.
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 70d3bdc..5866fef 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -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