diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:03 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:03 +0000 |
commit | 1ada7e4c22d883c1f9fe135626822bcf124ed05e (patch) | |
tree | a0ae3e339d68621bc0b303527e69617e7ca6aa2b /bindings/lang_php5_helpers/wrapper_source.py | |
parent | 4e43c605c28a713ca3d7b4a55ea1b118dc67d43d (diff) | |
download | lasso-1ada7e4c22d883c1f9fe135626822bcf124ed05e.tar.gz lasso-1ada7e4c22d883c1f9fe135626822bcf124ed05e.tar.xz lasso-1ada7e4c22d883c1f9fe135626822bcf124ed05e.zip |
[project @ fpeters@0d.be-20080310093300-2iv41ihnuify54po]
merging benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-10 10:33:00.592000+01:00
Diffstat (limited to 'bindings/lang_php5_helpers/wrapper_source.py')
-rw-r--r-- | bindings/lang_php5_helpers/wrapper_source.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bindings/lang_php5_helpers/wrapper_source.py b/bindings/lang_php5_helpers/wrapper_source.py index c6a348a9..e08c089c 100644 --- a/bindings/lang_php5_helpers/wrapper_source.py +++ b/bindings/lang_php5_helpers/wrapper_source.py @@ -217,7 +217,9 @@ PHP_MSHUTDOWN_FUNCTION(lasso) print >> self.fd, ' %s = (%s)cvt_%s->obj;' % (arg[1], arg[0], arg[1]) if m.return_type is not None: - print >> self.fd, ' return_c_value =', + print >> self.fd, ' return_c_value = ', + if 'new' in m.name: + print >> self.fd, '(%s)' % m.return_type, else: print >> self.fd, ' ', print >> self.fd, '%s(%s);' % (m.name, ', '.join([x[1] for x in m.args])) |