blob: 00a23aae207a384926fc8b58bfbb7959ea1e3ccc [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001
Guido van Rossum85a5fbb1990-10-14 12:07:46 +00002/* Module object interface */
3
Fred Drake3cf4d2b2000-07-09 00:55:06 +00004#ifndef Py_MODULEOBJECT_H
5#define Py_MODULEOBJECT_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
Guido van Rossum051ab121995-02-27 10:17:52 +000010extern DL_IMPORT(PyTypeObject) PyModule_Type;
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000011
Guido van Rossumcaa63801995-01-12 11:45:45 +000012#define PyModule_Check(op) ((op)->ob_type == &PyModule_Type)
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000013
Fred Drake3cf4d2b2000-07-09 00:55:06 +000014extern DL_IMPORT(PyObject *) PyModule_New(char *);
15extern DL_IMPORT(PyObject *) PyModule_GetDict(PyObject *);
16extern DL_IMPORT(char *) PyModule_GetName(PyObject *);
17extern DL_IMPORT(char *) PyModule_GetFilename(PyObject *);
18extern DL_IMPORT(void) _PyModule_Clear(PyObject *);
Guido van Rossuma3309961993-07-28 09:05:47 +000019
20#ifdef __cplusplus
21}
22#endif
23#endif /* !Py_MODULEOBJECT_H */