Release 1.39.0
[boost.git] / Boost_1_39_0 / libs / python / pyste / tests / wrappertest.pyste
blob12ba47b6b29031413f193ac0fe7e535f4b80548e
1 Include('wrappertest_wrappers.h')
3 f = Function('wrappertest::Range', 'wrappertest.h')
4 set_wrapper(f, 'RangeWrapper')
6 mul = Wrapper('MulWrapper',
7 '''
8 list MulWrapper(wrappertest::C& c, int value){    
9     return VectorToList(c.Mul(value));
10
11 '''
14 C = Class('wrappertest::C', 'wrappertest.h')
15 set_wrapper(C.Mul, mul)
18 A = Class('wrappertest::A', 'wrappertest.h')
19 set_wrapper(A.f, 'f_wrapper')
21 Function('wrappertest::call_foo', 'wrappertest.h')