PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/ocaml/std_vector/example.i

#
Swig | 15 lines | 8 code | 3 blank | 4 comment | 0 complexity | f9b331c8f8d8b3cb5516eec5a2ee04c2 MD5 | raw file
 1/* -*- C++ -*- */
 2/* File : example.i -- stolen from the guile std_vector example */
 3%module example
 4
 5%{
 6#include "example.h"
 7%}
 8
 9%include stl.i
10/* instantiate the required template specializations */
11%template(IntVector)    std::vector<int>;
12%template(DoubleVector) std::vector<double>;
13
14/* Let's just grab the original header file here */
15%include "example.h"