コード例 #1
0
ファイル: handle.hpp プロジェクト: Niko-r/geofeatures
 inline T* manage_ptr(T* p, ...)
 {
     return expect_non_null(p);
 }
コード例 #2
0
ファイル: handle.hpp プロジェクト: Niko-r/geofeatures
 inline T* manage_ptr(detail::borrowed<T>* p, long)
 {
     return python::incref(expect_non_null((T*)p));
 }
コード例 #3
0
 inline T return_object_manager_from_python<T>::operator()(PyObject* obj) const
 {
     return T(
         object_manager_traits<T>::adopt(expect_non_null(obj))
         );
 }
コード例 #4
0
 result_type operator()(PyObject* x) const
 {
     Py_DECREF(expect_non_null(x));
     return result_type();
 }
コード例 #5
0
ファイル: from_python.cpp プロジェクト: AsherBond/PDAL
BOOST_PYTHON_DECL void void_result_from_python(PyObject* o)
{
    Py_DECREF(expect_non_null(o));
}