37#define PyProjection_Type_NUM 0
39#define PyProjection_GetNative_NUM 1
40#define PyProjection_GetNative_RETURN Projection_t*
41#define PyProjection_GetNative_PROTO (PyProjection*)
43#define PyProjection_New_NUM 2
44#define PyProjection_New_RETURN PyProjection*
45#define PyProjection_New_PROTO (Projection_t*)
47#define PyProjection_NewFromDef_NUM 3
48#define PyProjection_NewFromDef_RETURN PyProjection*
49#define PyProjection_NewFromDef_PROTO (const char* id, const char* definition, const char* description)
51#define PyProjection_API_pointers 4
53#define PyProjection_CAPSULE_NAME "_projection._C_API"
55#ifdef PYPROJECTION_MODULE
57extern PyTypeObject PyProjection_Type;
60#define PyProjection_Check(op) ((op)->ob_type == &PyProjection_Type)
79static void **PyProjection_API;
85#define PyProjection_GetNative \
86 (*(PyProjection_GetNative_RETURN (*)PyProjection_GetNative_PROTO) PyProjection_API[PyProjection_GetNative_NUM])
94#define PyProjection_New \
95 (*(PyProjection_New_RETURN (*)PyProjection_New_PROTO) PyProjection_API[PyProjection_New_NUM])
104#define PyProjection_NewFromDef \
105 (*(PyProjection_NewFromDef_RETURN (*)PyProjection_NewFromDef_PROTO) PyProjection_API[PyProjection_NewFromDef_NUM])
110#define PyProjection_Check(op) \
111 (Py_TYPE(op) == &PyProjection_Type)
113#define PyProjection_Type (*(PyTypeObject *)PyProjection_API[PyProjection_Type_NUM])
118#define import_pyprojection() \
119 PyProjection_API = (void **)PyCapsule_Import(PyProjection_CAPSULE_NAME, 1);
#define PyProjection_NewFromDef
Creates a new projection instance from a definition.
Definition pyprojection.h:104
#define PyProjection_NewFromDef_RETURN
return type for NewFromDef
Definition pyprojection.h:48
#define PyProjection_GetNative
Returns a pointer to the internal projection, remember to release the reference when done with the ob...
Definition pyprojection.h:85
#define PyProjection_New_PROTO
argument prototype for New
Definition pyprojection.h:45
#define PyProjection_GetNative_RETURN
return type for GetNative
Definition pyprojection.h:40
#define PyProjection_New_RETURN
return type for New
Definition pyprojection.h:44
#define PyProjection_New
Creates a new projection instance.
Definition pyprojection.h:94
#define PyProjection_GetNative_PROTO
argument prototype for GetNative
Definition pyprojection.h:41
#define PyProjection_NewFromDef_PROTO
argument prototype for NewFromDef
Definition pyprojection.h:49
A projection.
Definition pyprojection.h:32
PyObject_HEAD Projection_t * projection
The projection definition.
Definition pyprojection.h:34
Represents one projection.
Definition projection.c:55