]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/python/test/crossmod_exception_a.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / python / test / crossmod_exception_a.cpp
CommitLineData
7c673cae
FG
1// Copyright (C) 2003 Rational Discovery LLC
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
6#include <boost/python.hpp>
7
8namespace python = boost::python;
9
10void tossit(){
11 PyErr_SetString(PyExc_IndexError,"a-blah!");
12 throw python::error_already_set();
13}
14
15BOOST_PYTHON_MODULE(crossmod_exception_a)
16{
17 python::def("tossit",tossit);
18}