Commit c7767247 authored by Stefan Behnel's avatar Stefan Behnel

Add C-API function declaration for PyInterpreterState_GetID(), which is new on Py3.7.

parent 5d65746e
......@@ -7,6 +7,8 @@ cdef extern from "Python.h":
# We make these an opaque types. If the user wants specific attributes,
# they can be declared manually.
ctypedef long PY_INT64_T # FIXME: Py2.7+, not defined here but used here
ctypedef struct PyInterpreterState:
pass
......@@ -39,6 +41,7 @@ cdef extern from "Python.h":
PyInterpreterState * PyInterpreterState_New()
void PyInterpreterState_Clear(PyInterpreterState *)
void PyInterpreterState_Delete(PyInterpreterState *)
PY_INT64_T PyInterpreterState_GetID(PyInterpreterState *)
PyThreadState * PyThreadState_New(PyInterpreterState *)
void PyThreadState_Clear(PyThreadState *)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment