Lines Matching refs:capsule
8 #define __PyCapsule_GetField(capsule, field, default_value) \ argument
9 ( PyCapsule_CheckExact(capsule) \
10 ? (((PyCObject *)capsule)->field) \
14 #define __PyCapsule_SetField(capsule, field, value) \ argument
15 ( PyCapsule_CheckExact(capsule) \
16 ? (((PyCObject *)capsule)->field = value), 1 \
23 #define PyCapsule_CheckExact(capsule) (PyCObject_Check(capsule)) argument
24 #define PyCapsule_IsValid(capsule, name) (PyCObject_Check(capsule)) argument
31 #define PyCapsule_GetPointer(capsule, name) \ argument
32 (PyCObject_AsVoidPtr(capsule))
35 #define PyCapsule_SetPointer(capsule, pointer) \ argument
36 __PyCapsule_SetField(capsule, cobject, pointer)
39 #define PyCapsule_GetDestructor(capsule) \ argument
40 __PyCapsule_GetField(capsule, destructor)
42 #define PyCapsule_SetDestructor(capsule, dtor) \ argument
43 __PyCapsule_SetField(capsule, destructor, dtor)
50 #define PyCapsule_GetName(capsule) NULL argument
53 PyCapsule_SetName(PyObject *capsule, const char *unused) in PyCapsule_SetName() argument
63 #define PyCapsule_GetContext(capsule) \ argument
64 __PyCapsule_GetField(capsule, descr)
66 #define PyCapsule_SetContext(capsule, context) \ argument
67 __PyCapsule_SetField(capsule, descr, context)