scilab: SWIG_ptr() accepts mlist typed pointers and converts them to pointers
This commit is contained in:
parent
07b7edcd87
commit
88b4827d87
3 changed files with 46 additions and 18 deletions
|
|
@ -15,4 +15,10 @@ checkequal(foo_addr, expected_foo_addr, "SWIG_this(pfoo_get())");
|
|||
pfoo = SWIG_ptr(foo_addr);
|
||||
checkequal(equalFooPointer(pfoo), %T, "equalFooPointer(pfoo)");
|
||||
|
||||
// Test conversion of mlist type pointers
|
||||
stA = new_structA();
|
||||
assert_checkequal(typeof(stA), "_p_structA");
|
||||
p = SWIG_ptr(stA);
|
||||
assert_checkequal(typeof(p), "pointer");
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue