add guards for swig/language extra methods and comments

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-10 17:58:14 +00:00
commit 024efdb6f6
12 changed files with 85 additions and 14 deletions

View file

@ -36,7 +36,10 @@ namespace std {
T first;
U second;
#ifdef %swig_pair_methods
// Add swig/language extra methods
%swig_pair_methods(std::pair<T,U >)
#endif
};
// ***
@ -73,7 +76,10 @@ namespace std {
T first;
U* second;
#ifdef %swig_pair_methods
// Add swig/language extra methods
%swig_pair_methods(std::pair<T,U*>)
#endif
};
template <class T, class U > struct pair<T*, U> {
@ -106,7 +112,10 @@ namespace std {
T* first;
U second;
#ifdef %swig_pair_methods
// Add swig/language extra methods
%swig_pair_methods(std::pair<T*,U >)
#endif
};
template <class T, class U > struct pair<T*, U*> {
@ -138,8 +147,11 @@ namespace std {
T* first;
U* second;
#ifdef %swig_pair_methods
// Add swig/language extra methods
%swig_pair_methods(std::pair<T*,U*>)
#endif
};
}