pending exception assertion makeover
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1df331a843
commit
ea7207963c
1 changed files with 2 additions and 2 deletions
|
|
@ -139,8 +139,8 @@ DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_$module(SWIG_CSharpExc
|
|||
}
|
||||
|
||||
public static void Set(Exception e) {
|
||||
if (pendingException != null)
|
||||
throw new Exception("Throwing exceptions from unmanaged code has gone broken down");
|
||||
if (pendingException != null) // Checks for missing pending exception code
|
||||
throw new Exception("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); // unmanaged code destructors may not be called
|
||||
pendingException = e;
|
||||
lock(typeof($modulePINVOKE)) {
|
||||
numExceptionsPending++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue