Fixed compilation problems, missing exception.i library.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d6a2573ef7
commit
919a65fb96
1 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
|||
// Python implementation
|
||||
|
||||
%include std_common.i
|
||||
%include exception.i
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
|
@ -499,8 +500,8 @@ namespace std {
|
|||
}
|
||||
%typemap(out) pair<T,U> {
|
||||
$result = PyTuple_New(2);
|
||||
PyTuple_SetItem($result,0,CONVERT_T_FROM($1.first));
|
||||
PyTuple_SetItem($result,1,CONVERT_U_FROM($1.second));
|
||||
PyTuple_SetItem($result,0,CONVERT_T_TO($1.first));
|
||||
PyTuple_SetItem($result,1,CONVERT_U_TO($1.second));
|
||||
}
|
||||
%typecheck(SWIG_TYPECHECK_PAIR) pair<T,U> {
|
||||
/* native sequence? */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue