Merge branch 'vadz-csharp-complex'
* vadz-csharp-complex:
Add header to std_complex.i
Fix linkage problems in C# std::complex wrappers
C# std::complex wrappers marshalling by value
C# std::complex wrappers SwigValueWrapper fix
Use %naturalvar for C# std::complex wrappers
Allow avoiding generation of unwanted std::complex<T> typemaps
Also apply csvar{in,out} typemaps to std::complex references
Add std_complex.i for C# too
Extend C# complex support to member variables of this type
Add support for std::complex<> to C#
Use new unified Mono mcs compiler if available under Unix
This commit is contained in:
commit
2ec156fb7f
8 changed files with 150 additions and 3 deletions
|
|
@ -15,3 +15,9 @@ try:
|
|||
complextest.Copy_h(v)
|
||||
except:
|
||||
pass
|
||||
|
||||
p = complextest.ComplexPair()
|
||||
p.z1 = complex(0, 1)
|
||||
p.z2 = complex(0, -1)
|
||||
if complextest.Conj(p.z2) != p.z1:
|
||||
raise RuntimeError, "bad complex mapping"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue