| 1 | #ifndef Py_MODULEOBJECT_H |
| 2 | #define Py_MODULEOBJECT_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | PyAPI_DATA(PyTypeObject) PyModule_Type; |
| 8 | |
| 9 | #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type) |
| 10 | #define PyModule_CheckExact(op) ((op)->ob_type == &PyModule_Type) |
| 11 | |
| 12 | PyAPI_FUNC(PyObject *) PyModule_New(char *); |
| 13 | PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *); |
| 14 | PyAPI_FUNC(char *) PyModule_GetName(PyObject *); |
| 15 | PyAPI_FUNC(char *) PyModule_GetFilename(PyObject *); |
| 16 | PyAPI_FUNC(void) _PyModule_Clear(PyObject *); |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | } |
| 20 | #endif |
| 21 | #endif /* !Py_MODULEOBJECT_H */ |