1 //////////////// Capsule.proto ////////////////
3 /* Todo: wrap the rest of the functionality in similar functions */
4 static CYTHON_INLINE PyObject
*__pyx_capsule_create(void *p
, const char *sig
);
6 //////////////// Capsule ////////////////
8 static CYTHON_INLINE PyObject
*
9 __pyx_capsule_create(void *p
, CYTHON_UNUSED
const char *sig
)
13 #if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 0)
14 cobj
= PyCapsule_New(p
, sig
, NULL
);
16 cobj
= PyCObject_FromVoidPtr(p
, NULL
);