various tweaks

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-05-31 07:22:46 +00:00
commit ca9959d2cd
4 changed files with 9 additions and 19 deletions

View file

@ -12,9 +12,9 @@
%typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
%typemap(throws) enum SWIGTYPE {
%typemap(throws) enum SWIGTYPE %{
SWIG_CSharpThrowException(SWIG_CSharpException, "C++ $1_type exception thrown");
}
%}
%typemap(csin) enum SWIGTYPE "(int)$csinput"
%typemap(csout) enum SWIGTYPE {

View file

@ -14,9 +14,9 @@
%typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
%typemap(throws) enum SWIGTYPE {
%typemap(throws) enum SWIGTYPE %{
SWIG_CSharpThrowException(SWIG_CSharpException, "C++ $1_type exception thrown");
}
%}
%typemap(csin) enum SWIGTYPE "$csinput"
%typemap(csout) enum SWIGTYPE {

View file

@ -18,14 +18,9 @@
%typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
%typemap(javain) enum SWIGTYPE "$javainput.swigValue()"
%typemap(javaout) enum SWIGTYPE {
return $javaclassname.swigToEnum($jnicall);
}
%typemap(throws) enum SWIGTYPE {
%typemap(throws) enum SWIGTYPE %{
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "C++ $1_type exception thrown");
}
%}
%typemap(javain) enum SWIGTYPE "$javainput"
%typemap(javaout) enum SWIGTYPE {

View file

@ -18,14 +18,9 @@
%typecheck(SWIG_TYPECHECK_INT32) enum SWIGTYPE ""
%typemap(javain) enum SWIGTYPE "$javainput.swigValue()"
%typemap(javaout) enum SWIGTYPE {
return $javaclassname.swigToEnum($jnicall);
}
%typemap(throws) enum SWIGTYPE {
%typemap(throws) enum SWIGTYPE %{
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "C++ $1_type exception thrown");
}
%}
%typemap(javain) enum SWIGTYPE "$javainput"
%typemap(javaout) enum SWIGTYPE {
@ -33,7 +28,7 @@
}
// '$static' will be replaced with either 'static' or nothing depending on whether the enum is an inner Java class or not
%typemap(javaclassmodifiers) enum SWIGTYPE "public $static class"
%typemap(javaclassmodifiers) enum SWIGTYPE "public final $static class"
%typemap(javagetcptr) enum SWIGTYPE ""
%javaenum(typeunsafe);