Add `Util.BreakDebuggerIfAttached` helper

This commit is contained in:
YoshiRulz 2022-11-07 04:37:34 +10:00
parent f1f0f1695c
commit 04f34ac7af
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,12 @@ namespace BizHawk.Common
{
public static unsafe class Util
{
[Conditional("DEBUG")]
public static void BreakDebuggerIfAttached()
{
if (Debugger.IsAttached) Debugger.Break();
}
public static void CopyStream(Stream src, Stream dest, long len)
{
const int size = 0x2000;