38#define PyRaveValue_Type_NUM 0
40#define PyRaveValue_GetNative_NUM 1
41#define PyRaveValue_GetNative_RETURN RaveValue_t*
42#define PyRaveValue_GetNative_PROTO (PyRaveValue*)
44#define PyRaveValue_New_NUM 2
45#define PyRaveValue_New_RETURN PyRaveValue*
46#define PyRaveValue_New_PROTO (RaveValue_t*)
48#define PyRaveValue_API_pointers 3
50#define PyRaveValue_CAPSULE_NAME "_ravevalue._C_API"
52#ifdef PYRAVEVALUE_MODULE
54extern PyTypeObject PyRaveValue_Type;
57#define PyRaveValue_Check(op) ((op)->ob_type == &PyRaveValue_Type)
67static void **PyRaveValue_API;
73#define PyRaveValue_GetNative \
74 (*(PyRaveValue_GetNative_RETURN (*)PyRaveValue_GetNative_PROTO) PyRaveValue_API[PyRaveValue_GetNative_NUM])
83#define PyRaveValue_New \
84 (*(PyRaveValue_New_RETURN (*)PyRaveValue_New_PROTO) PyRaveValue_API[PyRaveValue_New_NUM])
89#define PyRaveValue_Check(op) \
90 (Py_TYPE(op) == &PyRaveValue_Type)
92#define PyRaveValue_Type (*(PyTypeObject*)PyRaveValue_API[PyRaveValue_Type_NUM])
97#define import_ravevalue() \
98 PyRaveValue_API = (void **)PyCapsule_Import(PyRaveValue_CAPSULE_NAME, 1);
#define PyRaveValue_GetNative
Returns a pointer to the internal area, remember to release the reference when done with the object.
Definition pyravevalue.h:73
#define PyRaveValue_New_PROTO
arguments for New
Definition pyravevalue.h:46
#define PyRaveValue_New_RETURN
return type for New
Definition pyravevalue.h:45
#define PyRaveValue_GetNative_PROTO
arguments for GetNative
Definition pyravevalue.h:42
#define PyRaveValue_New
Creates a new rave value instance.
Definition pyravevalue.h:83
#define PyRaveValue_GetNative_RETURN
return type for GetNative
Definition pyravevalue.h:41
A value object that can represent standard types like int, double, .
struct _RaveValue_t RaveValue_t
Defines a rave value.
Definition rave_value.h:47
A cartesian product.
Definition pyravevalue.h:33
PyObject_HEAD RaveValue_t * value
the value
Definition pyravevalue.h:35