Fixed compilation problems, missing exception.i library.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-11-26 19:30:38 +00:00
commit 057c2d5dd1

View file

@ -6,6 +6,7 @@
// Python implementation // Python implementation
%include std_common.i %include std_common.i
%include exception.i
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
@ -499,8 +500,8 @@ namespace std {
} }
%typemap(out) pair<T,U> { %typemap(out) pair<T,U> {
$result = PyTuple_New(2); $result = PyTuple_New(2);
PyTuple_SetItem($result,0,CONVERT_T_FROM($1.first)); PyTuple_SetItem($result,0,CONVERT_T_TO($1.first));
PyTuple_SetItem($result,1,CONVERT_U_FROM($1.second)); PyTuple_SetItem($result,1,CONVERT_U_TO($1.second));
} }
%typecheck(SWIG_TYPECHECK_PAIR) pair<T,U> { %typecheck(SWIG_TYPECHECK_PAIR) pair<T,U> {
/* native sequence? */ /* native sequence? */