add guards for swig/language extra methods and comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1d0d321124
commit
409e17e94a
12 changed files with 85 additions and 14 deletions
|
|
@ -86,7 +86,11 @@ namespace std {
|
|||
%typemap_traits(SWIG_TYPECHECK_VECTOR, std::vector<T,A >);
|
||||
|
||||
%std_vector_methods(vector<T,A >);
|
||||
|
||||
#ifdef %swig_vector_methods
|
||||
// Add swig/language extra methods
|
||||
%swig_vector_methods(std::vector<T,A >);
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -122,7 +126,11 @@ namespace std {
|
|||
%typemap_traits(SWIG_TYPECHECK_VECTOR, std::vector<T*,A >);
|
||||
|
||||
%std_vector_methods_val(vector);
|
||||
|
||||
#ifdef %swig_vector_methods
|
||||
// Add swig/language extra methods
|
||||
%swig_vector_methods_val(std::vector<T*,A >);
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue