Enhancement to Swig_require(), Swig_save(), Swig_restore()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c47494cb7a
commit
e19c73746d
9 changed files with 135 additions and 171 deletions
|
|
@ -214,7 +214,8 @@ DohGetattr(DOH *obj, const DOH *name) {
|
|||
DohBase *b = (DohBase *) obj;
|
||||
DohObjInfo *objinfo = b->type;
|
||||
if (objinfo->doh_hash && objinfo->doh_hash->doh_getattr) {
|
||||
return (objinfo->doh_hash->doh_getattr)(b,(DOH *) name);
|
||||
DOH *r = (objinfo->doh_hash->doh_getattr)(b,(DOH *) name);
|
||||
return (r == DohNone) ? 0 : r;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue