More of the new C# exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bac8f43f79
commit
91b75b245f
8 changed files with 103 additions and 97 deletions
|
|
@ -758,9 +758,9 @@ class CSHARP : public Language {
|
|||
if(Strstr(f->code, "SWIG_exception")) {
|
||||
Swig_warning(WARN_CSHARP_CANTHROW, input_file, line_number,
|
||||
"Unmanaged code contains a call to SWIG_exception and C# code does not handle pending exceptions via the canthrow attribute.\n");
|
||||
} else if(Strstr(f->code, "SWIG_CSharpThrowException")) {
|
||||
} else if(Strstr(f->code, "SWIG_CSharpSetPendingException")) {
|
||||
Swig_warning(WARN_CSHARP_CANTHROW, input_file, line_number,
|
||||
"Unmanaged code contains a call to SWIG_CSharpThrowException and C# code does not handle pending exceptions via the canthrow attribute.\n");
|
||||
"Unmanaged code contains a call to SWIG_CSharpSetPendingException and C# code does not handle pending exceptions via the canthrow attribute.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue