missing throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8ccabb2cc1
commit
abeef193d2
4 changed files with 35 additions and 0 deletions
|
|
@ -538,6 +538,14 @@
|
|||
SWIG_croakSV(esv);
|
||||
}
|
||||
|
||||
%typemap(throws) SWIGTYPE, SWIGTYPE &, SWIGTYPE *, SWIGTYPE [ANY] %{
|
||||
SWIG_croak("C++ $1_type exception thrown");
|
||||
%}
|
||||
|
||||
%typemap(throws) enum SWIGTYPE %{
|
||||
SWIG_croak("C++ $1_type exception thrown");
|
||||
%}
|
||||
|
||||
%typemap(throws) char * {
|
||||
SWIG_croak($1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,5 +63,13 @@ namespace std {
|
|||
++argvi;
|
||||
}
|
||||
|
||||
%typemap(throws) const string & {
|
||||
SWIG_croak($1.c_str());
|
||||
}
|
||||
|
||||
%typemap(throws) string {
|
||||
SWIG_croak($1.c_str());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,4 +44,13 @@ namespace std {
|
|||
Tcl_SetStringObj($result,(char*)$1->c_str(),$1->length());
|
||||
}
|
||||
|
||||
%typemap(throws) string {
|
||||
Tcl_SetObjResult(interp, Tcl_NewStringObj((char*) $1.c_str(), -1));
|
||||
SWIG_fail;
|
||||
}
|
||||
|
||||
%typemap(throws) const string & {
|
||||
Tcl_SetObjResult(interp, Tcl_NewStringObj((char*) $1.c_str(), -1));
|
||||
SWIG_fail;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -547,6 +547,16 @@
|
|||
SWIG_fail;
|
||||
}
|
||||
|
||||
%typemap(throws) SWIGTYPE, SWIGTYPE &, SWIGTYPE *, SWIGTYPE [ANY] {
|
||||
Tcl_SetObjResult(interp, Tcl_NewStringObj((char*) "$1_type", -1));
|
||||
SWIG_fail;
|
||||
}
|
||||
|
||||
%typemap(throws) enum SWIGTYPE {
|
||||
Tcl_SetObjResult(interp, Tcl_NewStringObj((char*) "$1_type", -1));
|
||||
SWIG_fail;
|
||||
}
|
||||
|
||||
%typemap(throws) char * {
|
||||
Tcl_SetObjResult(interp, Tcl_NewStringObj((char*) $1, -1));
|
||||
SWIG_fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue