From 6e7f1bc257f596090c0a8a01b9126beaad9c38df Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 14 Nov 2001 17:41:17 +0000 Subject: [PATCH] Pro7 compatibility [SVN r11681] --- src/gen_extclass.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gen_extclass.py b/src/gen_extclass.py index 57189a7d..b794dc2c 100644 --- a/src/gen_extclass.py +++ b/src/gen_extclass.py @@ -238,6 +238,9 @@ class python_extension_class_converters } boost::python::detail::report_missing_instance_data(self, boost::python::detail::class_registry::class_object(), typeid(T)); throw boost::python::argument_error(); +#if defined(__MWERKS__) && __MWERKS__ <= 0x2406 + return 0; +#endif } // Convert to T* @@ -266,6 +269,10 @@ class python_extension_class_converters } boost::python::detail::report_missing_ptr_data(self, boost::python::detail::class_registry::class_object(), typeid(T)); throw boost::python::argument_error(); +#if defined(__MWERKS__) && __MWERKS__ <= 0x2406 + PtrType x; + return x; +#endif } // Extract from obj a reference to the PtrType object which is holding a