Added ThrowHelper type

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-20 11:46:19 +01:00
1 親 0c3f8f92c3
コミット 3d48a6fb0c
11ファイル変更
+125 -27

検索条件に一致するファイルはありません

+2 -3
ファイルの表示
@@ -1,6 +1,7 @@
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using ComputeSharp.Core.Helpers;
using HRESULT = System.Int32;
namespace ComputeSharp.Graphics.Helpers
@@ -21,9 +22,7 @@ namespace ComputeSharp.Graphics.Helpers
{
if (result < 0)
{
static void Throw(HRESULT result) => throw new Win32Exception(result);
Throw(result);
ThrowHelper.ThrowWin32Exception(result);
}
}
}