add template_extmode case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7134 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f7787d9e97
commit
fa5d4f79fb
1 changed files with 10 additions and 1 deletions
|
|
@ -43,11 +43,20 @@
|
|||
{
|
||||
val = v;
|
||||
}
|
||||
|
||||
#ifdef SWIG
|
||||
%typemap(in) Foo* "/* in typemap for Foo, with type T */"
|
||||
#endif
|
||||
};
|
||||
%}
|
||||
|
||||
%template(Foo_I1) Foo<Integer1>;
|
||||
%template(Foo_I2) Foo<Integer2>;
|
||||
|
||||
%inline %{
|
||||
int bar(Foo<Integer1> *foo) {
|
||||
return 0;
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue