CoolFace
Apppublic

vidya7732/AI_Doctor_LLM_GenModel

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
cellobject.h30 linesDownload Raw Back to include
1/* Cell object interface */2#ifndef Py_LIMITED_API3#ifndef Py_CELLOBJECT_H4#define Py_CELLOBJECT_H5#ifdef __cplusplus6extern "C" {7#endif8 9typedef struct {10    PyObject_HEAD11    PyObject *ob_ref;       /* Content of the cell or NULL when empty */12} PyCellObject;13 14PyAPI_DATA(PyTypeObject) PyCell_Type;15 16#define PyCell_Check(op) Py_IS_TYPE(op, &PyCell_Type)17 18PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);19PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);20PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);21 22#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)23#define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)24 25#ifdef __cplusplus26}27#endif28#endif /* !Py_TUPLEOBJECT_H */29#endif /* Py_LIMITED_API */30