37#define PyComposite_Type_NUM 0
39#define PyComposite_GetNative_NUM 1
40#define PyComposite_GetNative_RETURN Composite_t*
41#define PyComposite_GetNative_PROTO (PyComposite*)
43#define PyComposite_New_NUM 2
44#define PyComposite_New_RETURN PyComposite*
45#define PyComposite_New_PROTO (Composite_t*)
47#define PyComposite_API_pointers 3
49#define PyComposite_CAPSULE_NAME "_pycomposite._C_API"
52#ifdef PYCOMPOSITE_MODULE
54extern PyTypeObject PyComposite_Type;
57#define PyComposite_Check(op) ((op)->ob_type == &PyComposite_Type)
67static void **PyComposite_API;
73#define PyComposite_GetNative \
74 (*(PyComposite_GetNative_RETURN (*)PyComposite_GetNative_PROTO) PyComposite_API[PyComposite_GetNative_NUM])
83#define PyComposite_New \
84 (*(PyComposite_New_RETURN (*)PyComposite_New_PROTO) PyComposite_API[PyComposite_New_NUM])
89#define PyComposite_Check(op) \
90 (Py_TYPE(op) == &PyComposite_Type)
92#define PyComposite_Type (*(PyTypeObject*)PyComposite_API[PyComposite_Type_NUM])
97#define import_pycomposite() \
98 PyComposite_API = (void **)PyCapsule_Import(PyComposite_CAPSULE_NAME, 1);
Provides functionality for creating composites.
#define PyComposite_GetNative
Returns a pointer to the internal composite, remember to release the reference when done with the obj...
Definition pycomposite.h:73
#define PyComposite_New_RETURN
return type for New
Definition pycomposite.h:44
#define PyComposite_GetNative_PROTO
arguments for GetNative
Definition pycomposite.h:41
#define PyComposite_GetNative_RETURN
return type for GetNative
Definition pycomposite.h:40
#define PyComposite_New
Creates a new composite instance.
Definition pycomposite.h:83
#define PyComposite_New_PROTO
arguments for New
Definition pycomposite.h:45
A composite generator.
Definition pycomposite.h:32
PyObject_HEAD Composite_t * composite
the composite generator
Definition pycomposite.h:34
Represents the cartesian product.
Definition composite.c:45