38#define PyGra_Type_NUM 0
40#define PyGra_GetNative_NUM 1
41#define PyGra_GetNative_RETURN RaveGra_t*
42#define PyGra_GetNative_PROTO (PyGra*)
44#define PyGra_New_NUM 2
45#define PyGra_New_RETURN PyGra*
46#define PyGra_New_PROTO (RaveGra_t*)
48#define PyGra_API_pointers 3
50#define PyGra_CAPSULE_NAME "_gra._C_API"
55extern PyTypeObject PyGra_Type;
58#define PyGra_Check(op) ((op)->ob_type == &PyGra_Type)
68static void **PyGra_API;
74#define PyGra_GetNative \
75 (*(PyGra_GetNative_RETURN (*)PyGra_GetNative_PROTO) PyGra_API[PyGra_GetNative_NUM])
85 (*(PyGra_New_RETURN (*)PyGra_New_PROTO) PyGra_API[PyGra_New_NUM])
90#define PyGra_Check(op) \
91 (Py_TYPE(op) == &PyGra_Type)
93#define PyGra_Type (*(PyTypeObject*)PyGra_API[PyGra_Type_NUM])
99 PyGra_API = (void **)PyCapsule_Import(PyGra_CAPSULE_NAME, 1);
#define PyGra_New_PROTO
arguments for New
Definition pygra.h:46
#define PyGra_New
Creates a new polar scan instance.
Definition pygra.h:84
#define PyGra_GetNative
Returns a pointer to the internal acrr, remember to release the reference when done with the object.
Definition pygra.h:74
#define PyGra_GetNative_RETURN
return type for GetNative
Definition pygra.h:41
#define PyGra_New_RETURN
return type for New
Definition pygra.h:45
#define PyGra_GetNative_PROTO
arguments for GetNative
Definition pygra.h:42
Gauge radar adjustment (GRA).
A gra coefficient applier.
Definition pygra.h:33
PyObject_HEAD RaveGra_t * gra
the gra applier
Definition pygra.h:35
Represents the gra applier.
Definition rave_gra.c:53