1 /* Cell object interface */
3 #ifndef Py_CELLOBJECT_H
4 #define Py_CELLOBJECT_H
11 PyObject
*ob_ref
; /* Content of the cell or NULL when empty */
14 PyAPI_DATA(PyTypeObject
) PyCell_Type
;
16 #define PyCell_Check(op) ((op)->ob_type == &PyCell_Type)
18 PyAPI_FUNC(PyObject
*) PyCell_New(PyObject
*);
19 PyAPI_FUNC(PyObject
*) PyCell_Get(PyObject
*);
20 PyAPI_FUNC(int) PyCell_Set(PyObject
*, PyObject
*);
22 #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
23 #define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)
28 #endif /* !Py_TUPLEOBJECT_H */