2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-02 09:02:15 +00:00

Pro7 compatibility

use the new "no-rethrow" way of handling exceptions.


[SVN r11682]
This commit is contained in:
Dave Abrahams
2001-11-14 19:50:35 +00:00
parent 6e7f1bc257
commit aad05325a6

View File

@@ -157,7 +157,7 @@ int IntPairPythonClass::getattr(const IntPair& p, const std::string& s)
PyErr_SetString(PyExc_AttributeError, s.c_str());
throw boost::python::error_already_set();
}
#if defined(__MWERKS__) && __MWERKS__ <= 0x2405
#if defined(__MWERKS__) && __MWERKS__ <= 0x2406
return 0;
#endif
}
@@ -1139,12 +1139,7 @@ void init_module()
BOOST_PYTHON_MODULE_INIT(boost_python_test)
{
try {
bpl_test::init_module();
}
catch(...) {
boost::python::handle_exception();
} // Need a way to report other errors here
boost::python::handle_exception((void (*)())bpl_test::init_module);
}
CompareIntPairPythonClass::CompareIntPairPythonClass(boost::python::module_builder& m)