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:
parent
ab9443b380
commit
b59d8e4db2
1 changed files with 6 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue