Examples updated.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
785eb794d0
commit
b770c69ebc
5 changed files with 6 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
(* example_prog.ml *)
|
||||
|
||||
open Swig
|
||||
open Example
|
||||
|
||||
(* Call our gcd() function *)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
(* This example was mostly lifted from the guile example directory *)
|
||||
|
||||
open Swig
|
||||
open Example
|
||||
|
||||
let y = "\205\177"
|
||||
|
|
|
|||
|
|
@ -8,10 +8,8 @@
|
|||
|
||||
%include stl.i
|
||||
/* instantiate the required template specializations */
|
||||
namespace std {
|
||||
%template(IntVector) std::vector<int>;
|
||||
%template(DoubleVector) std::vector<double>;
|
||||
}
|
||||
%template(IntVector) std::vector<int>;
|
||||
%template(DoubleVector) std::vector<double>;
|
||||
|
||||
/* Let's just grab the original header file here */
|
||||
%include "example.h"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
(* This example was mostly lifted from the guile example directory *)
|
||||
|
||||
open Swig
|
||||
open Example
|
||||
|
||||
(* repeatedly invoke a procedure with v and an index as arguments *)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
(* This example was mostly lifted from the guile example directory *)
|
||||
|
||||
open Swig
|
||||
open Example
|
||||
|
||||
let v = new_StringVector C_void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue