Exemplo n.º 1
0
 inline T* manage_ptr(T* p, ...)
 {
     return expect_non_null(p);
 }
Exemplo n.º 2
0
 inline T* manage_ptr(detail::borrowed<T>* p, long)
 {
     return python::incref(expect_non_null((T*)p));
 }
 inline T return_object_manager_from_python<T>::operator()(PyObject* obj) const
 {
     return T(
         object_manager_traits<T>::adopt(expect_non_null(obj))
         );
 }
Exemplo n.º 4
0
 result_type operator()(PyObject* x) const
 {
     Py_DECREF(expect_non_null(x));
     return result_type();
 }
Exemplo n.º 5
0
BOOST_PYTHON_DECL void void_result_from_python(PyObject* o)
{
    Py_DECREF(expect_non_null(o));
}