PageRenderTime 32ms CodeModel.GetById 31ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Examples/test-suite/template_typedef_fnc.i

#
Swig | 14 lines | 11 code | 3 blank | 0 comment | 0 complexity | 50b1decfd506245cc377d20f5a8d3e98 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module template_typedef_fnc
 2
 3%include "std_vector.i"
 4namespace std {
 5   %template(IntVector) vector<int>;
 6};
 7
 8%inline 
 9{
10  typedef void (*RtMidiCallback)(std::vector<int> *message);
11
12  void setCallback( RtMidiCallback callback) {
13  }
14}