37#define PyPolarNavigator_Type_NUM 0
39#define PyPolarNavigator_GetNative_NUM 1
40#define PyPolarNavigator_GetNative_RETURN PolarNavigator_t*
41#define PyPolarNavigator_GetNative_PROTO (PyPolarNavigator*)
43#define PyPolarNavigator_New_NUM 2
44#define PyPolarNavigator_New_RETURN PyPolarNavigator*
45#define PyPolarNavigator_New_PROTO (PolarNavigator_t*)
47#define PyPolarNavigator_API_pointers 3
49#define PyPolarNavigator_CAPSULE_NAME "_polarnav._C_API"
51#ifdef PYPOLARNAV_MODULE
53extern PyTypeObject PyPolarNavigator_Type;
56#define PyPolarNavigator_Check(op) ((op)->ob_type == &PyPolarNavigator_Type)
66static void **PyPolarNavigator_API;
72#define PyPolarNavigator_GetNative \
73 (*(PyPolarNavigator_GetNative_RETURN (*)PyPolarNavigator_GetNative_PROTO) PyPolarNavigator_API[PyPolarNavigator_GetNative_NUM])
82#define PyPolarNavigator_New \
83 (*(PyPolarNavigator_New_RETURN (*)PyPolarNavigator_New_PROTO) PyPolarNavigator_API[PyPolarNavigator_New_NUM])
89#define PyPolarNavigator_Check(op) \
90 (Py_TYPE(op) == &PyPolarNavigator_Type)
92#define PyPolarNavigator_Type (*(PyTypeObject*)PyPolarNavigator_API[PyPolarNavigator_Type_NUM])
97#define import_pypolarnav() \
98 PyPolarNavigator_API = (void **)PyCapsule_Import(PyPolarNavigator_CAPSULE_NAME, 1);
Utilities for performing polar navigation.
#define PyPolarNavigator_New_PROTO
arguments for New
Definition pypolarnav.h:45
#define PyPolarNavigator_GetNative_RETURN
return type for GetNative
Definition pypolarnav.h:40
#define PyPolarNavigator_New
Creates a new polar scan instance.
Definition pypolarnav.h:82
#define PyPolarNavigator_GetNative
Returns a pointer to the internal polar navigator, remember to release the reference when done with t...
Definition pypolarnav.h:72
#define PyPolarNavigator_GetNative_PROTO
arguments for GetNative
Definition pypolarnav.h:41
#define PyPolarNavigator_New_RETURN
return type for New
Definition pypolarnav.h:44
A polar navigator.
Definition pypolarnav.h:32
PyObject_HEAD PolarNavigator_t * navigator
the polar navigator
Definition pypolarnav.h:34
Represents one polar navigator.
Definition polarnav.c:44