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:
parent
3e0de3c3d9
commit
024efdb6f6
12 changed files with 85 additions and 14 deletions
|
|
@ -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
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue