to_python_function_type.hpp 764 B

12345678910111213141516171819
  1. // Copyright David Abrahams 2002.
  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 TO_PYTHON_FUNCTION_TYPE_DWA200236_HPP
  6. # define TO_PYTHON_FUNCTION_TYPE_DWA200236_HPP
  7. # include <boost/python/detail/prefix.hpp>
  8. # include <boost/static_assert.hpp>
  9. namespace boost { namespace python { namespace converter {
  10. // The type of stored function pointers which actually do conversion
  11. // by-value. The void* points to the object to be converted, and
  12. // type-safety is preserved through runtime registration.
  13. typedef PyObject* (*to_python_function_t)(void const*);
  14. }}} // namespace boost::python::converter
  15. #endif // TO_PYTHON_FUNCTION_TYPE_DWA200236_HPP