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
|
|
@ -89,7 +89,11 @@ namespace std {
|
|||
%typemap_traits_ptr(SWIG_TYPECHECK_LIST, std::list<T >);
|
||||
|
||||
%std_list_methods(list);
|
||||
|
||||
#ifdef %swig_list_methods
|
||||
// Add swig/language extra methods
|
||||
%swig_list_methods(std::list<T >);
|
||||
#endif
|
||||
};
|
||||
|
||||
template<class T > class list<T*> {
|
||||
|
|
@ -120,7 +124,11 @@ namespace std {
|
|||
%typemap_traits_ptr(SWIG_TYPECHECK_LIST, std::list<T* >);
|
||||
|
||||
%std_list_methods_val(list);
|
||||
|
||||
#ifdef %swig_list_methods_val
|
||||
// Add swig/language extra methods
|
||||
%swig_list_methods_val(std::list<T* >);
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue