Incorporated [ 696516 ] Enabling exception processing for data member access.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-20 19:13:52 +00:00
commit b59d8e4db2

View file

@ -1074,10 +1074,14 @@ Language::membervariableHandler(Node *n) {
/* If not a smart-pointer access or added method. We clear
feature:except. There is no way C++ or C would throw
an exception merely for accessing a member data
an exception merely for accessing a member data.
Caveat: Some compilers seem to route attribute access through
methods which can generate exceptions. The feature:allowexcept
allows this.
*/
if (!(Extend | SmartPointer)) {
if (!(Extend | SmartPointer) && (!Getattr(n,"feature:allowexcept"))) {
Delattr(n,"feature:except");
}