enable passing C++ instances to void*-valued arguments

This commit is contained in:
Wenzel Jakob
2016-04-30 19:56:10 +02:00
parent e8b9dd263c
commit 772c6d54d6
5 changed files with 40 additions and 15 deletions

View File

@@ -5,8 +5,14 @@ Back element is Element 2
Opaque list: [Element 1]
Opaque list: []
Opaque list: [Element 1, Element 3]
Got void ptr : 1234
Got void ptr : 0x1234
Called Example1 default constructor..
Got void ptr : 0x7f9ba0f3c430
Called Example1 destructor (0)
Caught expected exception: Incompatible function arguments. The following argument types are supported:
1. (capsule) -> NoneType
None
Got null str : 0
<example.StringList object at 0x104a47500>
Got null str : 0x0
<example.StringList object at 0x10d3277a0>
Opaque list: [some value]