Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9283e3 commit cc97b8aCopy full SHA for cc97b8a
src/runtime/Runtime.cs
@@ -672,6 +672,9 @@ internal static unsafe nint Refcount(BorrowedReference op)
672
[Pure]
673
internal static int Refcount32(BorrowedReference op) => checked((int)Refcount(op));
674
675
+ internal static void TryUsingDll(Action op) =>
676
+ TryUsingDll(() => { op(); return 0; });
677
+
678
/// <summary>
679
/// Call specified function, and handle PythonDLL-related failures.
680
/// </summary>
0 commit comments