| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -672,6 +672,9 @@ internal static unsafe nint Refcount(BorrowedReference op) | |||
| 672 | 672 | [Pure] | |
| 673 | 673 | internal static int Refcount32(BorrowedReference op) => checked((int)Refcount(op)); | |
| 674 | 674 | ||
| 675 | + internal static void TryUsingDll(Action op) => | ||
| 676 | + TryUsingDll(() => { op(); return 0; }); | ||
| 677 | + | ||
| 675 | 678 | /// <summary> | |
| 676 | 679 | /// Call specified function, and handle PythonDLL-related failures. | |
| 677 | 680 | /// </summary> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments