sipConvertToCpp

Name

sipConvertToCpp -- Convert a Python instance of a class to a C/C++ object pointer

Synopsis

sipConvertToCpp sipConvertToCpp(PyObject * sipSelf, PyObject * baseclass, int * iserrp);

Description

Return Value

A pointer to the C++ class or NULL in case of an error (e.g. the instance's class is not derived from the given baseclass).

sipSelf

A pointer to the Python object instance.

baseclass

The base class of the Python object instance.

iserrp

Store TRUE here if we had an error.