fix example back to use old typemaps rules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6983 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
86c306dcc2
commit
7ca386e731
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
%apply int *INPUT {int *bar};
|
||||
|
||||
%typemap(out, fragment=SWIG_From_frag(int)) int * Foo::foo {
|
||||
%typemap(out, fragment=SWIG_From_frag(int)) int *foo {
|
||||
if ($1) {
|
||||
$result = SWIG_From(int)(*$1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue