Permalink
Browse files

scilab: add library cpointer.i (and test case)

  • Loading branch information...
1 parent 894d6f6 commit fb51700c3a03d7cecba8a3b4f44816be7364c84f @smarchetto smarchetto committed Jun 11, 2014
Showing with 9 additions and 0 deletions.
  1. +8 −0 Examples/test-suite/scilab/li_cpointer_runme.sci
  2. +1 −0 Lib/scilab/cpointer.i
@@ -0,0 +1,8 @@
+exec("swigtest.start", -1);
+
+p = new_intp();
+intp_assign(p, 3);
+checkequal(intp_value(p), 3, "intp_value(p)");
+delete_intp(p);
+
+exec("swigtest.quit", -1);
View
@@ -0,0 +1 @@
+%include <typemaps/cpointer.swg>

0 comments on commit fb51700

Please sign in to comment.