17 PyObject* tup = PyTuple_New( nelems );
18 for (
int i = 0; i < nelems; ++i ) {
21 PyTuple_SetItem( tup, i,
28 Py_INCREF( tup ); PyTuple_SET_ITEM( args, 0, tup );
30 if ( PyErr_Occurred() ) PyErr_Print();
39#pragma GCC diagnostic push
40#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
46 (
char*)
"ROOT.InstancesArray",
65 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_CHECKTYPES |
67 (
char*)
"PyROOT long object for pass by reference",
92#if PY_VERSION_HEX >= 0x02030000
95#if PY_VERSION_HEX >= 0x02060000
98#if PY_VERSION_HEX >= 0x03040000
101#if PY_VERSION_HEX >= 0x03080000
103#if PY_VERSION_HEX < 0x03090000
109#if !defined(_MSC_VER)
110#pragma GCC diagnostic pop
#define PyVarObject_HEAD_INIT(type, size)
size_t SizeOf(TCppType_t klass)
PyObject * BindCppObject(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, Bool_t isRef=kFALSE)
if the object is a null pointer, return a typed one (as needed for overloading)
PyObject * TTupleOfInstances_New(Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t nelems)
PyTypeObject TTupleOfInstances_Type
Representation of C-style array of instances.