unnecessary check and code simplification when emitting value type returns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3a56cbeaa9
commit
3e5741f582
1 changed files with 5 additions and 9 deletions
|
|
@ -36,9 +36,6 @@ void emit_args(SwigType *rt, ParmList *l, Wrapper *f) {
|
||||||
|
|
||||||
/* Handle return type */
|
/* Handle return type */
|
||||||
if (rt && (SwigType_type(rt) != T_VOID)) {
|
if (rt && (SwigType_type(rt) != T_VOID)) {
|
||||||
if (!CPlusPlus || (CPlusPlus && !SwigType_isclass(rt))) {
|
|
||||||
Wrapper_add_local(f,"result", SwigType_lstr(rt,"result"));
|
|
||||||
} else {
|
|
||||||
SwigType *vt = 0;
|
SwigType *vt = 0;
|
||||||
vt = cplus_value_type(rt);
|
vt = cplus_value_type(rt);
|
||||||
if (!vt) {
|
if (!vt) {
|
||||||
|
|
@ -48,7 +45,6 @@ void emit_args(SwigType *rt, ParmList *l, Wrapper *f) {
|
||||||
Delete(vt);
|
Delete(vt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Attach typemaps to parameters */
|
/* Attach typemaps to parameters */
|
||||||
/* Swig_typemap_attach_parms("ignore",l,f); */
|
/* Swig_typemap_attach_parms("ignore",l,f); */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue