From 1c2d0058bdced654003f2d58d4890f04d992aa7d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 30 Nov 2003 20:54:37 +0000 Subject: [PATCH] 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/SWIG@5447 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/java/javahead.swg | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Lib/java/javahead.swg b/Lib/java/javahead.swg index 1a6d84759..5e89b02e5 100644 --- a/Lib/java/javahead.swg +++ b/Lib/java/javahead.swg @@ -56,11 +56,8 @@ typedef struct { SWIG_JavaExceptionCodes code; const char *java_exception; } SWIG_JavaExceptions_t; - -#if defined(SWIG_NOINCLUDE) -void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg); -#else %} + %insert(runtime) { void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) { jclass excep; @@ -86,9 +83,8 @@ void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const c JCALL2(ThrowNew, jenv, excep, msg); } } -%insert(runtime) %{ -#endif +%insert(runtime) %{ /* Contract support */ #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else