@@ -2112,7 +2112,7 @@ internal static NewReference PyException_GetTraceback(BorrowedReference ex)
2112
2112
/// <summary>
2113
2113
/// Set the cause associated with the exception to cause. Use NULL to clear it. There is no type check to make sure that cause is either an exception instance or None. This steals a reference to cause.
2114
2114
/// </summary>
2115
- internal static void PyException_SetCause ( BorrowedReference ex , BorrowedReference cause )
2115
+ internal static void PyException_SetCause ( BorrowedReference ex , StolenReference cause )
2116
2116
=> Delegates . PyException_SetCause ( ex , cause ) ;
2117
2117
internal static int PyException_SetTraceback ( BorrowedReference ex , BorrowedReference tb )
2118
2118
=> Delegates . PyException_SetTraceback ( ex , tb ) ;
@@ -2516,7 +2516,7 @@ static Delegates()
2516
2516
PyDict_GetItemWithError = ( delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference , BorrowedReference > ) GetFunctionByName ( nameof ( PyDict_GetItemWithError ) , GetUnmanagedDll ( _PythonDll ) ) ;
2517
2517
PyException_GetCause = ( delegate * unmanaged[ Cdecl] < BorrowedReference , NewReference > ) GetFunctionByName ( nameof ( PyException_GetCause ) , GetUnmanagedDll ( _PythonDll ) ) ;
2518
2518
PyException_GetTraceback = ( delegate * unmanaged[ Cdecl] < BorrowedReference , NewReference > ) GetFunctionByName ( nameof ( PyException_GetTraceback ) , GetUnmanagedDll ( _PythonDll ) ) ;
2519
- PyException_SetCause = ( delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference , void > ) GetFunctionByName ( nameof ( PyException_SetCause ) , GetUnmanagedDll ( _PythonDll ) ) ;
2519
+ PyException_SetCause = ( delegate * unmanaged[ Cdecl] < BorrowedReference , StolenReference , void > ) GetFunctionByName ( nameof ( PyException_SetCause ) , GetUnmanagedDll ( _PythonDll ) ) ;
2520
2520
PyException_SetTraceback = ( delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference , int > ) GetFunctionByName ( nameof ( PyException_SetTraceback ) , GetUnmanagedDll ( _PythonDll ) ) ;
2521
2521
PyThreadState_SetAsyncExcLLP64 = ( delegate * unmanaged[ Cdecl] < uint , IntPtr , int > ) GetFunctionByName ( "PyThreadState_SetAsyncExc" , GetUnmanagedDll ( _PythonDll ) ) ;
2522
2522
PyThreadState_SetAsyncExcLP64 = ( delegate * unmanaged[ Cdecl] < ulong , IntPtr , int > ) GetFunctionByName ( "PyThreadState_SetAsyncExc" , GetUnmanagedDll ( _PythonDll ) ) ;
@@ -2796,7 +2796,7 @@ static Delegates()
2796
2796
internal static delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference , BorrowedReference > PyDict_GetItemWithError { get ; }
2797
2797
internal static delegate * unmanaged[ Cdecl] < BorrowedReference , NewReference > PyException_GetCause { get ; }
2798
2798
internal static delegate * unmanaged[ Cdecl] < BorrowedReference , NewReference > PyException_GetTraceback { get ; }
2799
- internal static delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference , void > PyException_SetCause { get ; }
2799
+ internal static delegate * unmanaged[ Cdecl] < BorrowedReference , StolenReference , void > PyException_SetCause { get ; }
2800
2800
internal static delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference , int > PyException_SetTraceback { get ; }
2801
2801
internal static delegate * unmanaged[ Cdecl] < uint , IntPtr , int > PyThreadState_SetAsyncExcLLP64 { get ; }
2802
2802
internal static delegate * unmanaged[ Cdecl] < ulong , IntPtr , int > PyThreadState_SetAsyncExcLP64 { get ; }
0 commit comments