blob: e070dcabf5cf793193cb9ec1999f1b5f17ee68af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* This interface file tests whether SWIG handles pointer-reference
(*&) arguments.
SWIG 1.3a5 signals a syntax error.
*/
%module pointer_reference
#ifdef SWIGGUILE
/* A silly testing typemap for feeding a doubly indirect integer */
%typemap(in) int *&XYZZY (int temp1, int *temp2) {
temp1 = gh_scm2int($input); temp2 = &temp1; $1 = &temp2;
};
#endif
%inline %{
void foo(int *&XYZZY) {}
%}
|