25#ifndef PYPOLARVOLUME_H
26#define PYPOLARVOLUME_H
37#define PyPolarVolume_Type_NUM 0
39#define PyPolarVolume_GetNative_NUM 1
40#define PyPolarVolume_GetNative_RETURN PolarVolume_t*
41#define PyPolarVolume_GetNative_PROTO (PyPolarVolume*)
43#define PyPolarVolume_New_NUM 2
44#define PyPolarVolume_New_RETURN PyPolarVolume*
45#define PyPolarVolume_New_PROTO (PolarVolume_t*)
47#define PyPolarVolume_API_pointers 3
49#define PyPolarVolume_CAPSULE_NAME "_polarvolume._C_API"
51#ifdef PYPOLARVOLUME_MODULE
53extern PyTypeObject PyPolarVolume_Type;
56#define PyPolarVolume_Check(op) ((op)->ob_type == &PyPolarVolume_Type)
66static void **PyPolarVolume_API;
72#define PyPolarVolume_GetNative \
73 (*(PyPolarVolume_GetNative_RETURN (*)PyPolarVolume_GetNative_PROTO) PyPolarVolume_API[PyPolarVolume_GetNative_NUM])
82#define PyPolarVolume_New \
83 (*(PyPolarVolume_New_RETURN (*)PyPolarVolume_New_PROTO) PyPolarVolume_API[PyPolarVolume_New_NUM])
88#define PyPolarVolume_Check(op) \
89 (Py_TYPE(op) == &PyPolarVolume_Type)
91#define PyPolarVolume_Type (*(PyTypeObject*)PyPolarVolume_API[PyPolarVolume_Type_NUM])
96#define import_pypolarvolume() \
97 PyPolarVolume_API = (void **)PyCapsule_Import(PyPolarVolume_CAPSULE_NAME, 1);
Defines the functions available when working with polar volumes.
#define PyPolarVolume_GetNative_RETURN
return type for GetNative
Definition pypolarvolume.h:40
#define PyPolarVolume_New_RETURN
return type for New
Definition pypolarvolume.h:44
#define PyPolarVolume_New
Creates a new polar volume instance.
Definition pypolarvolume.h:82
#define PyPolarVolume_GetNative_PROTO
arguments for GetNative
Definition pypolarvolume.h:41
#define PyPolarVolume_New_PROTO
arguments for New
Definition pypolarvolume.h:45
#define PyPolarVolume_GetNative
Returns a pointer to the internal polar volume, remember to release the reference when done with the ...
Definition pypolarvolume.h:72
The polar volume object.
Definition pypolarvolume.h:32
PyObject_HEAD PolarVolume_t * pvol
the polar volume
Definition pypolarvolume.h:34
Represents a volume.
Definition polarvolume.c:51