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:
Marcelo Matus 2005-08-28 07:13:02 +00:00
commit 7c016db190

View file

@ -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",