various tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ac855f9298
commit
ca9959d2cd
4 changed files with 9 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue