internal.hpp
Go to the documentation of this file.
00001 // Copyright Jim Bosch 2010-2012.
00002 // Distributed under the Boost Software License, Version 1.0.
00003 //    (See accompanying file LICENSE_1_0.txt or copy at
00004 //          http://www.boost.org/LICENSE_1_0.txt)
00005 #ifndef BOOST_NUMPY_INTERNAL_HPP_INCLUDED
00006 #define BOOST_NUMPY_INTERNAL_HPP_INCLUDED
00007 
00015 #include <boost/python.hpp>
00016 #ifdef BOOST_NUMPY_INTERNAL
00017 #define NO_IMPORT_ARRAY
00018 #define NO_IMPORT_UFUNC
00019 #else
00020 #ifndef BOOST_NUMPY_INTERNAL_MAIN
00021 ERROR_internal_hpp_is_for_internal_use_only
00022 #endif
00023 #endif
00024 #define PY_ARRAY_UNIQUE_SYMBOL BOOST_NUMPY_ARRAY_API
00025 #define PY_UFUNC_UNIQUE_SYMBOL BOOST_UFUNC_ARRAY_API
00026 #include <numpy/arrayobject.h>
00027 #include <numpy/ufuncobject.h>
00028 #include <boost/numpy.hpp>
00029 
00030 #define NUMPY_OBJECT_MANAGER_TRAITS_IMPL(pytype,manager)                \
00031     PyTypeObject const * object_manager_traits<manager>::get_pytype() { return &pytype; }
00032 
00033 #endif // !BOOST_NUMPY_INTERNAL_HPP_INCLUDED


boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40