We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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