mirror of
https://github.com/boostorg/python.git
synced 2026-02-01 20:52:13 +00:00
fixes for GCC .so/exception problems
[SVN r13471]
This commit is contained in:
@@ -262,7 +262,7 @@ class python_extension_class_converters
|
||||
return static_cast<T*>(target);
|
||||
}
|
||||
boost::python::detail::report_missing_instance_data(self, boost::python::detail::class_registry<T>::class_object(), typeid(T));
|
||||
throw boost::python::argument_error();
|
||||
boost::python::throw_argument_error();
|
||||
#if defined(__MWERKS__) && __MWERKS__ <= 0x2406
|
||||
return 0;
|
||||
#endif
|
||||
@@ -293,7 +293,7 @@ class python_extension_class_converters
|
||||
return held->ptr();
|
||||
}
|
||||
boost::python::detail::report_missing_ptr_data(self, boost::python::detail::class_registry<T>::class_object(), typeid(T));
|
||||
throw boost::python::argument_error();
|
||||
boost::python::throw_argument_error();
|
||||
#if defined(__MWERKS__) && __MWERKS__ <= 0x2406
|
||||
return *(PtrType*)0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user