Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
653 B

  1. /* Cell object interface */
  2. #ifndef Py_CELLOBJECT_H
  3. #define Py_CELLOBJECT_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct {
  8. PyObject_HEAD
  9. PyObject *ob_ref; /* Content of the cell or NULL when empty */
  10. } PyCellObject;
  11. PyAPI_DATA(PyTypeObject) PyCell_Type;
  12. #define PyCell_Check(op) ((op)->ob_type == &PyCell_Type)
  13. PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
  14. PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
  15. PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);
  16. #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
  17. #define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* !Py_TUPLEOBJECT_H */