// Forward declarations of types of the Python C API. // Declare them at the same place since redefining typedef is a C11 feature. // Only use a forward declaration if there is an interdependency between two // header files. #ifndef Py_PYTYPEDEFS_H #define Py_PYTYPEDEFS_H #ifdef __cplusplus extern "C" { #endif PyModuleDef; PyModuleDef_Slot; PyMethodDef; PyGetSetDef; PyMemberDef; PyObject; PyLongObject; PyTypeObject; PyCodeObject; PyFrameObject; PyThreadState; PyInterpreterState; #ifdef __cplusplus } #endif #endif // !Py_PYTYPEDEFS_H