All test cases work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f31bcd2a0e
commit
0f445779b9
1 changed files with 6 additions and 2 deletions
|
|
@ -131,8 +131,7 @@ namespace std {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%template (StringVector) std::vector<string >;
|
#ifdef ENABLE_CHARPTR_ARRAY
|
||||||
|
|
||||||
char **c_charptr_array( const std::vector <string > &str_v );
|
char **c_charptr_array( const std::vector <string > &str_v );
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
@ -145,6 +144,10 @@ char **c_charptr_array( const std::vector <string > &str_v );
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_STRING_VECTOR
|
||||||
|
%template (StringVector) std::vector<string >;
|
||||||
|
|
||||||
%insert(ml) %{
|
%insert(ml) %{
|
||||||
(* Some STL convenience items *)
|
(* Some STL convenience items *)
|
||||||
|
|
@ -160,3 +163,4 @@ char **c_charptr_array( const std::vector <string > &str_v );
|
||||||
%insert(mli) %{
|
%insert(mli) %{
|
||||||
val c_string_array: string array -> c_obj
|
val c_string_array: string array -> c_obj
|
||||||
%}
|
%}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue