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
This commit is contained in:
William S Fulton 2003-11-30 20:54:49 +00:00
commit 28e32ef4a8

View file

@ -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) %{