PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Include/moduleobject.h

http://unladen-swallow.googlecode.com/
C++ Header | 24 lines | 17 code | 6 blank | 1 comment | 1 complexity | 6172f0cfb0980579caedd03ff42e4162 MD5 | raw file
 1
 2/* Module object interface */
 3
 4#ifndef Py_MODULEOBJECT_H
 5#define Py_MODULEOBJECT_H
 6#ifdef __cplusplus
 7extern "C" {
 8#endif
 9
10PyAPI_DATA(PyTypeObject) PyModule_Type;
11
12#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
13#define PyModule_CheckExact(op) (Py_TYPE(op) == &PyModule_Type)
14
15PyAPI_FUNC(PyObject *) PyModule_New(const char *);
16PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
17PyAPI_FUNC(char *) PyModule_GetName(PyObject *);
18PyAPI_FUNC(char *) PyModule_GetFilename(PyObject *);
19PyAPI_FUNC(void) _PyModule_Clear(PyObject *);
20
21#ifdef __cplusplus
22}
23#endif
24#endif /* !Py_MODULEOBJECT_H */