37#define PyQITotal_Type_NUM 0
39#define PyQITotal_GetNative_NUM 1
40#define PyQITotal_GetNative_RETURN RaveQITotal_t*
41#define PyQITotal_GetNative_PROTO (PyQITotal*)
43#define PyQITotal_New_NUM 2
44#define PyQITotal_New_RETURN PyQITotal*
45#define PyQITotal_New_PROTO (RaveQITotal_t*)
47#define PyQITotal_API_pointers 3
49#define PyQITotal_CAPSULE_NAME "_qitotal._C_API"
51#ifdef PYQITOTAL_MODULE
53extern PyTypeObject PyQITotal_Type;
56#define PyQITotal_Check(op) ((op)->ob_type == &PyQITotal_Type)
70static void **PyQITotal_API;
76#define PyQITotal_GetNative \
77 (*(PyQITotal_GetNative_RETURN (*)PyQITotal_GetNative_PROTO) PyQITotal_API[PyQITotal_GetNative_NUM])
85#define PyQITotal_New \
86 (*(PyQITotal_New_RETURN (*)PyQITotal_New_PROTO) PyQITotal_API[PyQITotal_New_NUM])
91#define PyQITotal_Check(op) \
92 (Py_TYPE(op) == &PyQITotal_Type)
94#define PyQITotal_Type (*(PyTypeObject*)PyQITotal_API[PyQITotal_Type_NUM])
99#define import_qitotal() \
100 PyQITotal_API = (void **)PyCapsule_Import(PyQITotal_CAPSULE_NAME, 1);
#define PyQITotal_GetNative_PROTO
argument prototype for GetNative
Definition pyqitotal.h:41
#define PyQITotal_New_PROTO
argument prototype for New
Definition pyqitotal.h:45
#define PyQITotal_New_RETURN
return type for New
Definition pyqitotal.h:44
#define PyQITotal_GetNative
Returns a pointer to the internal qi total, remember to release the reference when done with the obje...
Definition pyqitotal.h:76
#define PyQITotal_GetNative_RETURN
return type for GetNative
Definition pyqitotal.h:40
#define PyQITotal_New
Creates a new qi total instance.
Definition pyqitotal.h:85
Implementation of the QI-total algorithm.
A qi total object.
Definition pyqitotal.h:32
PyObject_HEAD RaveQITotal_t * qitotal
The qi total algorithm.
Definition pyqitotal.h:34
Represents the QI total generator.
Definition rave_qitotal.c:35