mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +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
|
@ -1007,6 +1007,14 @@ PyThreadState_GetInterpreter(PyThreadState *tstate)
|
|||
}
|
||||
|
||||
|
||||
struct _frame*
|
||||
PyThreadState_GetFrame(PyThreadState *tstate)
|
||||
{
|
||||
assert(tstate != NULL);
|
||||
return _PyThreadState_GetFrame(tstate);
|
||||
}
|
||||
|
||||
|
||||
/* Asynchronously raise an exception in a thread.
|
||||
Requested by Just van Rossum and Alex Martelli.
|
||||
To prevent naive misuse, you must write your own extension
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue