Fixed bug in nested classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6711f81400
commit
aff495252c
1 changed files with 1 additions and 2 deletions
|
|
@ -449,11 +449,10 @@ void PYTHON::cpp_variable(char *name, char *iname, DataType *t) {
|
||||||
if ((Getattr(hash,t->name)) && (t->is_pointer <= 1)) inhash = 1;
|
if ((Getattr(hash,t->name)) && (t->is_pointer <= 1)) inhash = 1;
|
||||||
|
|
||||||
// Now write some code to set the variable
|
// Now write some code to set the variable
|
||||||
*csetattr << tab8 << "\"" << realname << "\" : " << module << "." << name_set(name_member(realname,class_name)) << ",\n";
|
|
||||||
|
|
||||||
if (Status & STAT_READONLY) {
|
if (Status & STAT_READONLY) {
|
||||||
// *setattr << tab8 << tab4 << "raise RuntimeError, \'Member is read-only\'\n";
|
// *setattr << tab8 << tab4 << "raise RuntimeError, \'Member is read-only\'\n";
|
||||||
} else {
|
} else {
|
||||||
|
*csetattr << tab8 << "\"" << realname << "\" : " << module << "." << name_set(name_member(realname,class_name)) << ",\n";
|
||||||
}
|
}
|
||||||
// Write some code to get the variable
|
// Write some code to get the variable
|
||||||
if (inhash) {
|
if (inhash) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue