From 28e32ef4a8672cff00c0b60944041825ae3669ea Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 30 Nov 2003 20:54:49 +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 C# git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5448 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/csharp/csharphead.swg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SWIG/Lib/csharp/csharphead.swg b/SWIG/Lib/csharp/csharphead.swg index 42f340e81..860dee526 100644 --- a/SWIG/Lib/csharp/csharphead.swg +++ b/SWIG/Lib/csharp/csharphead.swg @@ -43,17 +43,13 @@ static SWIG_CSharpExceptions_t SWIG_csharp_exceptions[] = { { SWIG_CSharpArgumentOutOfRangeException, NULL }, { SWIG_CSharpNullReferenceException, NULL } }; -#if defined(SWIG_NOINCLUDE) -void SWIG_CSharpThrowException(SWIG_CSharpExceptionCodes code, const char *msg); -#else -void SWIG_CSharpThrowException(SWIG_CSharpExceptionCodes code, const char *msg) { +static void SWIG_CSharpThrowException(SWIG_CSharpExceptionCodes code, const char *msg) { SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpException].callback; if (code >=0 && (size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpExceptionCodes)) { callback = SWIG_csharp_exceptions[code].callback; } callback(msg); } -#endif %} %insert(runtime) %{