Line | |
---|
1 | Include('wrappertest_wrappers.h') |
---|
2 | |
---|
3 | f = Function('wrappertest::Range', 'wrappertest.h') |
---|
4 | set_wrapper(f, 'RangeWrapper') |
---|
5 | |
---|
6 | mul = Wrapper('MulWrapper', |
---|
7 | ''' |
---|
8 | list MulWrapper(wrappertest::C& c, int value){ |
---|
9 | return VectorToList(c.Mul(value)); |
---|
10 | } |
---|
11 | ''' |
---|
12 | ) |
---|
13 | |
---|
14 | C = Class('wrappertest::C', 'wrappertest.h') |
---|
15 | set_wrapper(C.Mul, mul) |
---|
16 | |
---|
17 | |
---|
18 | A = Class('wrappertest::A', 'wrappertest.h') |
---|
19 | set_wrapper(A.f, 'f_wrapper') |
---|
20 | |
---|
21 | Function('wrappertest::call_foo', 'wrappertest.h') |
---|
Note: See
TracBrowser
for help on using the repository browser.