62 Py_XDECREF(derivedMethod);
67 if (!mro || !PyTuple_Check(mro)) {
69 Py_DECREF(derivedMethod);
74 for (
int i = 1; i < PyTuple_GET_SIZE(mro); ++i) {
75 baseMethod = (
CPPOverload *)PyObject_GetAttrString(PyTuple_GET_ITEM(mro, i),
const_cast<char *
>(method));
85 Py_DECREF(baseMethod);
92 Py_XDECREF(baseMethod);
93 Py_DECREF(derivedMethod);
101 Py_DECREF(baseMethod);
102 Py_DECREF(derivedMethod);
119 PyObject *pyclass = PyTuple_GetItem(args, 0);
#define CPyCppyy_PyText_AsString
#define CPyCppyy_PyText_FromString
static bool AddUsingToClass(PyObject *pyclass, const char *method)
void AdoptMethod(PyCallable *pc)
MethodInfo_t * fMethodInfo
Set of helper functions that are invoked from the pythonizors, on the Python side.
bool CPPOverload_Check(T *object)
PyObject * GetEndianess(PyObject *self, PyObject *args)
Get endianess of the system.
PyObject * AddUsingToClass(PyObject *self, PyObject *args)
Add base class overloads of a given method to a derived class.
CPPOverload::Methods_t fMethods