public static object LoadLibrary(string library, [DefaultParameterValue(0)] int mode) { IntPtr res = NativeFunctions.LoadDLL(library, mode); if (res == IntPtr.Zero) { throw PythonOps.OSError("cannot load library {0}", library); } return(res.ToPython()); }
public static object LoadLibrary(string library, int mode = 0) { IntPtr res = NativeFunctions.LoadDLL(library, mode); if (res == IntPtr.Zero) { throw PythonOps.OSError($"cannot load library {library}"); } return(res.ToPython()); }