]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpi/src/python/datatypes.cpp
1 // (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com>
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Authors: Douglas Gregor
9 /** @file datatypes.cpp
11 * This file provides datatypes support for Boost.MPI in Python.
13 #include <boost/mpi/python/serialize.hpp>
14 #include <boost/mpi.hpp>
16 namespace boost
{ namespace mpi
{ namespace python
{
18 void export_datatypes()
20 #if PY_MAJOR_VERSION < 3
21 register_serialized(long(0), &PyInt_Type
);
23 register_serialized(false, &PyBool_Type
);
24 register_serialized(double(0.0), &PyFloat_Type
);
27 } } } // end namespace boost::mpi::python