blob: 5146317a1f6149bfb19bc03f770a4faa0ee0d278 (
plain)
1
2
3
4
5
6
7
8
9
10
|
%module typedef_reference
%include cpointer.i
%pointer_functions(int, intp);
%inline %{
typedef int & IntRef;
int somefunc(IntRef i) { return i; }
int otherfunc(int &i) { return i; }
%}
|