blob: 4c7724f21fde08b5454744583fd2f8be6f1d56a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
%module cpp11_using_typedef_struct
%inline
%{
namespace nspace1 {
typedef struct _xAffineMatrix {
int x, y, z;
} AffineMatrix;
struct xCacheView {
int x;
};
typedef struct xCacheView CacheView;
}
using nspace1::AffineMatrix;
using nspace1::CacheView;
int fn1(AffineMatrix a) { return a.x; };
int fn2(CacheView a) { return a.x; };
%}
|