Fix OUTPUT Typemap not having return statement bug in PHP wrapper.
This commit is contained in:
parent
52f9ef7bfc
commit
251d25346d
3 changed files with 6 additions and 2 deletions
|
|
@ -1841,7 +1841,7 @@ public:
|
|||
Delete(wrapobj);
|
||||
}
|
||||
} else {
|
||||
if (non_void_return) {
|
||||
if (non_void_return || hasargout) {
|
||||
Printf(output, "\t\treturn %s;\n", invoke);
|
||||
} else if (Cmp(invoke, "$r") != 0) {
|
||||
Printf(output, "\t\t%s;\n", invoke);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue