add template + typedef + fnc case reported by Carlos Pita. Broken in 1.3.24, but works in CVS.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
815f9f0265
commit
bcc417e5f6
2 changed files with 15 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ CPP_TEST_CASES += \
|
||||||
template_typedef_cplx3 \
|
template_typedef_cplx3 \
|
||||||
template_typedef_cplx4 \
|
template_typedef_cplx4 \
|
||||||
template_typedef_cplx5 \
|
template_typedef_cplx5 \
|
||||||
|
template_typedef_fnc \
|
||||||
template_typedef_ns \
|
template_typedef_ns \
|
||||||
template_typedef_ptr \
|
template_typedef_ptr \
|
||||||
template_virtual \
|
template_virtual \
|
||||||
|
|
|
||||||
14
SWIG/Examples/test-suite/template_typedef_fnc.i
Normal file
14
SWIG/Examples/test-suite/template_typedef_fnc.i
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
%module template_typedef_fnc
|
||||||
|
|
||||||
|
%include "std_vector.i"
|
||||||
|
namespace std {
|
||||||
|
%template(IntVector) vector<int>;
|
||||||
|
};
|
||||||
|
|
||||||
|
%inline
|
||||||
|
{
|
||||||
|
typedef void (*RtMidiCallback)(std::vector<int> *message);
|
||||||
|
|
||||||
|
void setCallback( RtMidiCallback callback) {
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue