dealloc.hpp 543 B

1234567891011121314151617
  1. // Copyright Gottfried Ganßauge 2003.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. # ifndef BOOST_PYTHON_DETAIL_DEALLOC_HPP_
  6. # define BOOST_PYTHON_DETAIL_DEALLOC_HPP_
  7. namespace boost { namespace python { namespace detail {
  8. extern "C"
  9. {
  10. inline void dealloc(PyObject* self)
  11. {
  12. PyObject_Del(self);
  13. }
  14. }
  15. }}} // namespace boost::python::detail
  16. # endif // BOOST_PYTHON_DETAIL_DEALLOC_HPP_