Added needed files.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8015067a00
commit
3a6a6d6a70
4 changed files with 104 additions and 0 deletions
17
Examples/ocaml/std_vector/example.i
Normal file
17
Examples/ocaml/std_vector/example.i
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/* -*- C++ -*- */
|
||||
/* File : example.i -- stolen from the guile std_vector example */
|
||||
%module example
|
||||
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
|
||||
%include stl.i
|
||||
/* instantiate the required template specializations */
|
||||
namespace std {
|
||||
%template(IntVector) std::vector<int>;
|
||||
%template(DoubleVector) std::vector<double>;
|
||||
}
|
||||
|
||||
/* Let's just grab the original header file here */
|
||||
%include "example.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue