From aad05325a6e1426c508c68e126281cbf86edc759 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 14 Nov 2001 19:50:35 +0000 Subject: [PATCH] Pro7 compatibility use the new "no-rethrow" way of handling exceptions. [SVN r11682] --- test/comprehensive.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/comprehensive.cpp b/test/comprehensive.cpp index 3571183e..8eaac025 100644 --- a/test/comprehensive.cpp +++ b/test/comprehensive.cpp @@ -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)