2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00
Files
python/pyste/example/wrappertest.pyste
Bruno da Silva de Oliveira 7d5c453f59 no message
[SVN r17825]
2003-03-12 01:39:28 +00:00

16 lines
281 B
Plaintext

Include('wrappertest_wrappers.h')
f = Function('Range', 'wrappertest.h')
set_wrapper(f, 'RangeWrapper')
mul = Wrapper('MulWrapper',
'''
list MulWrapper(C& c, int value){
return VectorToList(c.Mul(value));
}
'''
)
C = Class('C', 'wrappertest.h')
set_wrapper(C.Mul, mul)