Fixed default value problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7bc2b85464
commit
446aabeffd
1 changed files with 2 additions and 2 deletions
|
|
@ -48,14 +48,14 @@ Swig_clocal(SwigType *t, String_or_char *name, String_or_char *value) {
|
|||
case T_USER:
|
||||
SwigType_add_pointer(t);
|
||||
if (value)
|
||||
Printf(decl,"%s = &%s", SwigType_lstr(t,name), value);
|
||||
Printf(decl,"%s = (%s) &%s", SwigType_lstr(t,name), SwigType_lstr(t,0), value);
|
||||
else
|
||||
Printf(decl,"%s", SwigType_lstr(t,name));
|
||||
SwigType_del_pointer(t);
|
||||
break;
|
||||
case T_REFERENCE:
|
||||
if (value)
|
||||
Printf(decl,"%s = &%s", SwigType_lstr(t,name), value);
|
||||
Printf(decl,"%s = (%s) &%s", SwigType_lstr(t,name), SwigType_lstr(t,0), value);
|
||||
else
|
||||
Printf(decl,"%s", SwigType_lstr(t,name));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue