diff options
Diffstat (limited to 'libs/python/pyste/tests/opaque.pyste')
-rw-r--r-- | libs/python/pyste/tests/opaque.pyste | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/python/pyste/tests/opaque.pyste b/libs/python/pyste/tests/opaque.pyste new file mode 100644 index 000000000..8180d251c --- /dev/null +++ b/libs/python/pyste/tests/opaque.pyste @@ -0,0 +1,7 @@ +foo = Function('opaque::new_C', 'opaque.h') +set_policy(foo, return_value_policy(return_opaque_pointer)) +foo = Function('opaque::new_C_zero', 'opaque.h') +set_policy(foo, return_value_policy(return_opaque_pointer)) +Function('opaque::get', 'opaque.h' ) +A = Class('opaque::A', 'opaque.h') +set_policy(A.new_handle, return_value_policy(return_opaque_pointer)) |