37#define PyTransform_Type_NUM 0
39#define PyTransform_GetNative_NUM 1
40#define PyTransform_GetNative_RETURN Transform_t*
41#define PyTransform_GetNative_PROTO (PyTransform*)
43#define PyTransform_New_NUM 2
44#define PyTransform_New_RETURN PyTransform*
45#define PyTransform_New_PROTO (Transform_t*)
47#define PyTransform_API_pointers 3
49#define PyTransform_CAPSULE_NAME "_transform._C_API"
51#ifdef PYTRANSFORM_MODULE
53extern PyTypeObject PyTransform_Type;
56#define PyTransform_Check(op) ((op)->ob_type == &PyTransform_Type)
66static void **PyTransform_API;
72#define PyTransform_GetNative \
73 (*(PyTransform_GetNative_RETURN (*)PyTransform_GetNative_PROTO) PyTransform_API[PyTransform_GetNative_NUM])
80#define PyTransform_New \
81 (*(PyTransform_New_RETURN (*)PyTransform_New_PROTO) PyTransform_API[PyTransform_New_NUM])
86#define PyTransform_Check(op) \
87 (Py_TYPE(op) == &PyTransform_Type)
89#define PyTransform_Type (*(PyTypeObject*)PyTransform_API[PyTransform_Type_NUM])
94#define import_pytransform() \
95 PyTransform_API = (void **)PyCapsule_Import(PyTransform_CAPSULE_NAME, 1);