Debian Codegraph @

pypy/module/cpyext/include/funcobject.h

raw symbols SCIP
1
2 /* Function object interface */
3
4 #ifndef Py_FUNCOBJECT_H
5 #define Py_FUNCOBJECT_H
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 typedef struct {
11 PyObject_HEAD
12 PyObject *func_name; /* The __name__ attribute, a string object */
13 } PyFunctionObject;
14
15 #define PyFunction_GET_CODE(obj) PyFunction_GetCode((PyObject*)(obj))
16
17 #define PyMethod_GET_FUNCTION(obj) PyMethod_Function((PyObject*)(obj))
18 #define PyMethod_GET_SELF(obj) PyMethod_Self((PyObject*)(obj))
19
20 #ifdef __cplusplus
21 }
22 #endif
23 #endif /* !Py_FUNCOBJECT_H */