| 227 | // return Py_None if the handle is null. |
| 228 | template <class T> |
| 229 | inline PyObject* get_managed_object(handle<T> const& h, tag_t) |
| 230 | { |
| 231 | return h.get() ? python::upcast<PyObject>(h.get()) : Py_None; |
| 232 | } |
| 233 | |
| 234 | }} // namespace boost::python |
| 235 |
no test coverage detected