more fixes for exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7598abd1fe
commit
f0f8a4bfea
1 changed files with 6 additions and 3 deletions
|
|
@ -229,7 +229,8 @@
|
|||
|
||||
%typemap(throws) SWIGTYPE * {
|
||||
if ($1_descriptor->clientdata) {
|
||||
PyErr_SetObject((PyObject *) ($1_descriptor->clientdata), SWIG_NewPointerObj($1,$1_descriptor,1));
|
||||
PyErr_SetObject((PyObject *) ($1_descriptor->clientdata),
|
||||
SWIG_NewPointerObj((void *) $1,$1_descriptor,1));
|
||||
} else {
|
||||
PyErr_SetString(PyExc_RuntimeError,"$1_type");
|
||||
}
|
||||
|
|
@ -239,7 +240,8 @@
|
|||
|
||||
%typemap(throws) SWIGTYPE [ANY] {
|
||||
if ($1_descriptor->clientdata) {
|
||||
PyErr_SetObject((PyObject *) ($1_descriptor->clientdata), SWIG_NewPointerObj($1,$1_descriptor,1));
|
||||
PyErr_SetObject((PyObject *) ($1_descriptor->clientdata),
|
||||
SWIG_NewPointerObj((void *)$1,$1_descriptor,1));
|
||||
} else {
|
||||
PyErr_SetString(PyExc_RuntimeError,"$1_type");
|
||||
}
|
||||
|
|
@ -248,7 +250,8 @@
|
|||
|
||||
%typemap(throws) SWIGTYPE & {
|
||||
if ($1_descriptor->clientdata) {
|
||||
PyErr_SetObject((PyObject *) ($1_descriptor->clientdata), SWIG_NewPointerObj(&($1),$1_descriptor,1));
|
||||
PyErr_SetObject((PyObject *) ($1_descriptor->clientdata),
|
||||
SWIG_NewPointerObj((void *)&($1),$1_descriptor,1));
|
||||
} else {
|
||||
PyErr_SetString(PyExc_RuntimeError,"$1_type");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue