fix for bug #1245591, related to __class__ attribute in Ptr classes + -nomodern (or exceptions)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0536823593
commit
7c016db190
1 changed files with 1 additions and 2 deletions
|
|
@ -2106,8 +2106,7 @@ public:
|
|||
Printv(f_shadow_file,
|
||||
tab8, "_swig_setattr(self, ", class_name, ", 'this', this)\n",
|
||||
tab8, "if not hasattr(self,\"thisown\"): _swig_setattr(self, ", class_name, ", 'thisown', 0)\n",
|
||||
tab8, "_swig_setattr(self, ", class_name, ",self.__class__,", class_name, ")\n",
|
||||
NIL);
|
||||
tab8, "self.__class__ = ", class_name, "\n", NIL);
|
||||
} else {
|
||||
Printv(f_shadow_file,
|
||||
tab8, "self.this = this\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue