PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/template_typedef_fnc.i

#
Swig | 14 lines | 11 code | 3 blank | 0 comment | 0 complexity | 50b1decfd506245cc377d20f5a8d3e98 MD5 | raw file
 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}