blob: 81efdc310b845a21b09aa384335e47d07a39d1b7 (
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; };
%}
|