mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add a low-level API to access interpreters, for David Beazley.
SF patch #436376.
This commit is contained in:
parent
130fb17578
commit
f5df46d701
2 changed files with 32 additions and 0 deletions
|
@ -100,6 +100,13 @@ extern DL_IMPORT(PyThreadState *) _PyThreadState_Current;
|
|||
#define PyThreadState_GET() (_PyThreadState_Current)
|
||||
#endif
|
||||
|
||||
/* Routines for advanced debuggers, requested by David Beazley.
|
||||
Don't use unless you know what you are doing! */
|
||||
DL_IMPORT(PyInterpreterState *) PyInterpreterState_Head(void);
|
||||
DL_IMPORT(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *);
|
||||
DL_IMPORT(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *);
|
||||
DL_IMPORT(PyThreadState *) PyThreadState_Next(PyThreadState *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue