blob: 43a26ddcd021013de84191342249b7065bec65d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var cpp11_using_typedef_struct = require("cpp11_using_typedef_struct");
var b = new cpp11_using_typedef_struct.AffineMatrix();
b.x = b.y = b.z = 1;
if (cpp11_using_typedef_struct.fn1(b) != b.x)
throw new Error('failed');
var bb = new cpp11_using_typedef_struct._xCacheView();
bb.x = 123;
if (cpp11_using_typedef_struct.fn2(bb) != 123)
throw new Error('failed');
|