25#ifndef PYCARTESIANVOLUME_H
26#define PYCARTESIANVOLUME_H
37#define PyCartesianVolume_Type_NUM 0
39#define PyCartesianVolume_GetNative_NUM 1
40#define PyCartesianVolume_GetNative_RETURN CartesianVolume_t*
41#define PyCartesianVolume_GetNative_PROTO (PyCartesianVolume*)
43#define PyCartesianVolume_New_NUM 2
44#define PyCartesianVolume_New_RETURN PyCartesianVolume*
45#define PyCartesianVolume_New_PROTO (CartesianVolume_t*)
47#define PyCartesianVolume_API_pointers 3
49#define PyCartesianVolume_CAPSULE_NAME "_cartesianvolume._C_API"
51#ifdef PYCARTESIANVOLUME_MODULE
53extern PyTypeObject PyCartesianVolume_Type;
56#define PyCartesianVolume_Check(op) ((op)->ob_type == &PyCartesianVolume_Type)
66static void **PyCartesianVolume_API;
72#define PyCartesianVolume_GetNative \
73 (*(PyCartesianVolume_GetNative_RETURN (*)PyCartesianVolume_GetNative_PROTO) PyCartesianVolume_API[PyCartesianVolume_GetNative_NUM])
82#define PyCartesianVolume_New \
83 (*(PyCartesianVolume_New_RETURN (*)PyCartesianVolume_New_PROTO) PyCartesianVolume_API[PyCartesianVolume_New_NUM])
89#define PyCartesianVolume_Check(op) \
90 (Py_TYPE(op) == &PyCartesianVolume_Type)
92#define PyCartesianVolume_Type (*(PyTypeObject*)PyCartesianVolume_API[PyCartesianVolume_Type_NUM])
97#define import_pycartesianvolume() \
98 PyCartesianVolume_API = (void **)PyCapsule_Import(PyCartesianVolume_CAPSULE_NAME, 1);
Defines the functions available when working with cartesian volumes.
#define PyCartesianVolume_GetNative_PROTO
arguments for GetNative
Definition pycartesianvolume.h:41
#define PyCartesianVolume_New
Creates a new cartesian volume instance.
Definition pycartesianvolume.h:82
#define PyCartesianVolume_GetNative_RETURN
return type for GetNative
Definition pycartesianvolume.h:40
#define PyCartesianVolume_New_RETURN
return type for New
Definition pycartesianvolume.h:44
#define PyCartesianVolume_GetNative
Returns a pointer to the internal cartesian volume, remember to release the reference when done with ...
Definition pycartesianvolume.h:72
#define PyCartesianVolume_New_PROTO
arguments for New
Definition pycartesianvolume.h:45
The cartesian volume object.
Definition pycartesianvolume.h:32
PyObject_HEAD CartesianVolume_t * cvol
the cartesian volume
Definition pycartesianvolume.h:34
Represents the cartesian volume.
Definition cartesianvolume.c:39