From cd06018820b32bce54d81472c78b96d5d4af763f Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 12 Mar 2003 17:56:41 +0000 Subject: [PATCH] opaque pointer conversions from Gottfried.Ganssauge@haufe.de [SVN r17859] --- include/boost/python/detail/dealloc.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/boost/python/detail/dealloc.hpp diff --git a/include/boost/python/detail/dealloc.hpp b/include/boost/python/detail/dealloc.hpp new file mode 100644 index 00000000..8c4aaee7 --- /dev/null +++ b/include/boost/python/detail/dealloc.hpp @@ -0,0 +1,15 @@ +// Copyright Gottfried Ganßauge 2003. Permission to copy, use, +// modify, sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided +// "as is" without express or implied warranty, and with no claim as +// to its suitability for any purpose. + +# ifndef BOOST_PYTHON_DETAIL_DEALLOC_HPP_ +# define BOOST_PYTHON_DETAIL_DEALLOC_HPP_ +namespace boost { namespace python { namespace detail { + extern "C" inline void dealloc(PyObject* self) + { + PyObject_Del(self); + } +}}} // namespace boost::python::detail +# endif // BOOST_PYTHON_DETAIL_DEALLOC_HPP_