Remove obsolete entries from .gitignore.
[chromium-blink-merge.git] / third_party / cython / src / Cython / Utility / Capsule.c
blobb9d11ac242afb9eba3866773ca3050dc51a15fa1
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)
11 PyObject *cobj;
13 #if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 0)
14 cobj = PyCapsule_New(p, sig, NULL);
15 #else
16 cobj = PyCObject_FromVoidPtr(p, NULL);
17 #endif
19 return cobj;