File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3
3
%module ignore_parameter
4
4
5
5
%typemap(in,numinputs=0 ) char * a " static const char* hi = \" hello\" ; $1 = const_cast<char *>(hi);" ;
6
- %typemap(in,numinputs=0 ) int bb " $1 = 101;" ;
6
+ %typemap(in,numinputs=0 ) int bb " $1 = 101; called_argout = 0; " ;
7
7
%typemap(in,numinputs=0 ) double ccc " $1 = 8.8;" ;
8
8
9
9
%typemap(freearg) char * a " " ; // ensure freearg is not generated (needed for Java at least)
10
10
11
+ %typemap(argout) int bb " called_argout = 1;"
12
+
11
13
%ignore unignorable;
12
14
13
15
%inline %{
16
+ // constant for detecting correct "argout" call
17
+ int called_argout = 0 ;
18
+
14
19
// global function tests
15
20
char * jaguar (char * a, int b, double c) { return a; }
16
21
int lotus (char * aa, int bb, double cc) { return bb; }
@@ -25,6 +30,7 @@ struct SportsCars {
25
30
double bugatti (char * aaa, int bbb, double ccc) { return ccc; }
26
31
int lamborghini (int bb) { return bb; }
27
32
int maseratti (int unignorable) { return unignorable; }
33
+ double audi (double ccc=9.5 ) { return ccc; }
28
34
};
29
35
30
36
// constructor tests
You can’t perform that action at this time.
0 commit comments