mirror of
https://github.com/boostorg/python.git
synced 2026-01-30 20:12:37 +00:00
opaque pointer conversions from Gottfried.Ganssauge@haufe.de
[SVN r17859]
This commit is contained in:
15
include/boost/python/detail/dealloc.hpp
Normal file
15
include/boost/python/detail/dealloc.hpp
Normal file
@@ -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_
|
||||
Reference in New Issue
Block a user