Initial commit of Octave module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
50b1578e19
commit
393391965c
275 changed files with 14004 additions and 5 deletions
28
Examples/test-suite/octave/swigobject_runme.m
Normal file
28
Examples/test-suite/octave/swigobject_runme.m
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
swigobject
|
||||
|
||||
a = A();
|
||||
|
||||
a1 = a_ptr(a);
|
||||
a2 = a_ptr(a);
|
||||
|
||||
if (swig_this(a1) != swig_this(a2))
|
||||
error
|
||||
endif
|
||||
|
||||
|
||||
lthis = uint64(swig_this(a.this));
|
||||
xstr1 = printf("0x%x",lthis);
|
||||
xstr2 = pointer_str(a);
|
||||
|
||||
if (xstr1 != xstr2)
|
||||
error
|
||||
endif
|
||||
|
||||
s = str(a.this);
|
||||
r = repr(a.this);
|
||||
|
||||
v1 = v_ptr(a);
|
||||
v2 = v_ptr(a);
|
||||
if (uint64(v1) != uint64(v2))
|
||||
error
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue