properly disable stl.i in target languages which do not support it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fc0ee40ae2
commit
dacc6e1dbb
3 changed files with 13 additions and 13 deletions
|
|
@ -1,5 +1,8 @@
|
|||
%module(directors="1") director_string;
|
||||
%include stl.i
|
||||
|
||||
#ifndef SWIG_STL_UNIMPL
|
||||
|
||||
%include std_vector.i
|
||||
%include std_string.i
|
||||
|
||||
|
|
@ -47,3 +50,6 @@ struct A
|
|||
%}
|
||||
|
||||
%template(StringVector) std::vector<std::string>;
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
%module(directors="1") director_wstring;
|
||||
%include stl.i
|
||||
|
||||
#ifndef SWIG_STL_UNIMPL
|
||||
|
||||
%include std_vector.i
|
||||
%include std_wstring.i
|
||||
|
||||
|
|
@ -47,3 +50,5 @@ struct A
|
|||
%}
|
||||
|
||||
%template(StringVector) std::vector<std::wstring>;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,14 +1,3 @@
|
|||
//
|
||||
// SWIG typemaps for STL types
|
||||
// Luigi Ballabio
|
||||
// Jan 16, 2003
|
||||
//
|
||||
// the %include directives below will fetch the files from the
|
||||
// appropriate language directory
|
||||
|
||||
%include <std_common.i>
|
||||
%include <std_string.i>
|
||||
%include <std_vector.i>
|
||||
%include <std_map.i>
|
||||
%include <std_pair.i>
|
||||
#warning "stl.i not implemented for this target"
|
||||
#define SWIG_STL_UNIMPL
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue