Completely removed SWIG_NOINCLUDE as the functions that use it don't need to be shared across different modules, besides there is no runtime library for Java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dfb5c58c46
commit
09ede20459
1 changed files with 2 additions and 6 deletions
|
|
@ -56,11 +56,8 @@ typedef struct {
|
||||||
SWIG_JavaExceptionCodes code;
|
SWIG_JavaExceptionCodes code;
|
||||||
const char *java_exception;
|
const char *java_exception;
|
||||||
} SWIG_JavaExceptions_t;
|
} SWIG_JavaExceptions_t;
|
||||||
|
|
||||||
#if defined(SWIG_NOINCLUDE)
|
|
||||||
void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg);
|
|
||||||
#else
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%insert(runtime) {
|
%insert(runtime) {
|
||||||
void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
|
void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
|
||||||
jclass excep;
|
jclass excep;
|
||||||
|
|
@ -86,9 +83,8 @@ void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const c
|
||||||
JCALL2(ThrowNew, jenv, excep, msg);
|
JCALL2(ThrowNew, jenv, excep, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%insert(runtime) %{
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
%insert(runtime) %{
|
||||||
/* Contract support */
|
/* Contract support */
|
||||||
|
|
||||||
#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
|
#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue