Debian Codegraph @

Include/internal/pycore_genobject.h

raw
1 #ifndef Py_INTERNAL_GENOBJECT_H
2 #define Py_INTERNAL_GENOBJECT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #ifndef Py_BUILD_CORE
8 # error "this header requires Py_BUILD_CORE define"
9 #endif
10
11 #include "pycore_freelist.h"
12
13 PyAPI_FUNC(PyObject *)_PyGen_yf(PyGenObject *);
14 extern void _PyGen_Finalize(PyObject *self);
15
16 // Export for '_asyncio' shared extension
17 PyAPI_FUNC(int) _PyGen_SetStopIterationValue(PyObject *);
18
19 // Export for '_asyncio' shared extension
20 PyAPI_FUNC(int) _PyGen_FetchStopIterationValue(PyObject **);
21
22 PyAPI_FUNC(PyObject *)_PyCoro_GetAwaitableIter(PyObject *o);
23 extern PyObject *_PyAsyncGenValueWrapperNew(PyThreadState *state, PyObject *);
24
25 extern PyTypeObject _PyCoroWrapper_Type;
26 extern PyTypeObject _PyAsyncGenWrappedValue_Type;
27 extern PyTypeObject _PyAsyncGenAThrow_Type;
28
29 #ifdef __cplusplus
30 }
31 #endif
32 #endif /* !Py_INTERNAL_GENOBJECT_H */