Chris@16: // Copyright David Abrahams 2002. Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef RAW_PYOBJECT_DWA2002628_HPP Chris@16: # define RAW_PYOBJECT_DWA2002628_HPP Chris@16: Chris@16: namespace boost { namespace python { namespace detail { Chris@16: Chris@16: // Chris@16: // Define some types which we can use to get around the vagaries of Chris@16: // PyObject*. We will use these to initialize object instances, and Chris@16: // keep them in namespace detail to make sure they stay out of the Chris@16: // hands of users. That is much simpler than trying to grant Chris@16: // friendship to all the appropriate parties. Chris@16: // Chris@16: Chris@16: // New references are normally checked for null Chris@16: struct new_reference_t; Chris@16: typedef new_reference_t* new_reference; Chris@16: Chris@16: // Borrowed references are assumed to be non-null Chris@16: struct borrowed_reference_t; Chris@16: typedef borrowed_reference_t* borrowed_reference; Chris@16: Chris@16: // New references which aren't checked for null Chris@16: struct new_non_null_reference_t; Chris@16: typedef new_non_null_reference_t* new_non_null_reference; Chris@16: Chris@16: }}} // namespace boost::python::detail Chris@16: Chris@16: #endif // RAW_PYOBJECT_DWA2002628_HPP