blob: c69ade3d6046ced63c99542ef04c6b40e2e8f894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Simple test to check SWIG's handling of return by value */
%module ret_by_value
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) test; /* Ruby, wrong class name */
%inline %{
typedef struct {
int myInt;
short myShort;
} test;
test get_test() {
test myTest = {100, 200};
return myTest;
}
%}
|