Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
448 bytes
|
Line | |
---|
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 | |
---|
8 | namespace python = boost::python; |
---|
9 | |
---|
10 | void tossit(){ |
---|
11 | PyErr_SetString(PyExc_IndexError,"b-blah!"); |
---|
12 | throw python::error_already_set(); |
---|
13 | } |
---|
14 | |
---|
15 | BOOST_PYTHON_MODULE(crossmod_exception_b) |
---|
16 | { |
---|
17 | python::def("tossit",tossit); |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.