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:
parent
09ede20459
commit
28e32ef4a8
1 changed files with 1 additions and 5 deletions
|
|
@ -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) %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue